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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners