Download the PHP package laravel/nova-pennant without Composer
On this page you can find all versions of the php package laravel/nova-pennant. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel/nova-pennant
More information about laravel/nova-pennant
Files in laravel/nova-pennant
Package nova-pennant
Short Description A Pennant Resource Tool for Laravel Nova
License MIT
Informations about the package nova-pennant
This package makes it easy to view and manage Laravel Pennant features for your Laravel application inside of Nova.
Installation
You can install the Nova tool via Composer:
Next, you must register the tool within the User Resource.
Usage
Authorization to Modify Feature Values
By default, Nova users will not have access to activate or deactivate features when they are authorized to see the resource. You need to use the canRun()
method to authorize all or specific users.
Password Confirmation
You can also require the user to confirm their password before activating or deactivating a feature by using requiresConfirmPassword()
method:
Rich Feature Values
In order to configure rich values Nova would need to depend on a class-based feature and utilize options(mixed $scope)
method:
namespace App\Features;
class UserTier
{
public $name = 'user-tier';
+ public function options(mixed $scope): array
+ {
+ return ['solo', 'pro'];
+ }
}
All versions of nova-pennant with dependencies
illuminate/support Version ^10.0|^11.0
laravel/pennant Version ^1.11
symfony/polyfill-php83 Version ^1.28