https://dev.to/slyfirefox https://res.cloudinary.com/practicaldev/image/fetch/s--O2C_Kzyn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/1024/0%2Auj0USqsz56eDKXKC Photo by Glen Rushton on Unsplash
Instead, using the Laravel Feature Flags package, we can configure things to rely on the database and fall back to a config file.
‘database’ => [ ‘driver’ =>’ database’, ‘cache’ => [ ‘ttl’ => 120, ], ‘connection’ => env(‘FEATURE_FLAG_DATABASE_CONNECTION’), ], As our backup, we will add a default flag value to our.features.php config.
Flagfox for Laravel will build upon my established work creating open-source packages to help developers add feature flags to their applications.