Feature flags allow you to remotely enable and disable features without deploying new code. Begin by installing the package with Composer and running the migrations: composer require ryangjchandler/laravel-feature-flags php artisan vendor:publish --tag="feature-flags-migrations" php artisan migrate

To check if this flag is enabled or disabled, you can use the Features::enabled() and Features::disabled() methods. It's probably quite common to conditionally render parts of your Blade templates based on a feature flag.

If you're using https://filamentphp.com, there is an additional package that provides a simple UI for managing feature flags.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners