Download the PHP package creativitykills/filament-pennant without Composer
On this page you can find all versions of the php package creativitykills/filament-pennant. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download creativitykills/filament-pennant
More information about creativitykills/filament-pennant
Files in creativitykills/filament-pennant
Package filament-pennant
Short Description Manage Feature Flags using Laravel Pennant from Filament.
License MIT
Homepage https://github.com/creativitykills/filament-pennant
Informations about the package filament-pennant
Filament Pennant – Manage Laravel Pennant in FilamentPHP
This plugin is heavily inspired by this plugin. There are several improvements including but not limited to:
- Support for scoped feature flags
- Support for Features in custom directories
- and more...

Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
Usage
This package is exclusively for class based features.
You'll have to register the plugin in your panel provider.
You don't have to call
Feature::discover()in your service provider boot method, this package already does this for you. However, if you have your features in custom locations outside theApp\Featuresdirectory, you need to register them using:
FilamentPennantServiceProvider::registerCustomFeatureLocations(['Modules\ACL\Features' => '/var/www/html/modules/ACL/Features']);
Create Class Based Feature
To create a class based feature, you may invoke the pennant:feature Artisan command.
When writing a feature class, you only need to use the CK\FilamentPennant\Concerns\ResolvesFeatureSegments
trait, which will be invoked to resolve the feature's initial value for a given scope.
You can see the trait for more things you can override like the defaultValue property.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Neo Ighodaro
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-pennant with dependencies
filament/filament Version ^5.0
illuminate/contracts Version ^11.28||^12.0||^13.0
laravel/pennant Version ^1.17
spatie/laravel-package-tools Version ^1.16