| Package Version | Filament | Laravel | PHP |
|---|---|---|---|
| 5.x | 5.x | 11.x, 12.x | 8.2+ |
| 4.x | 4.x | 10.x, 11.x | 8.2+ |
You can install the package via composer:
# For Filament 5.x
composer require visualbuilder/user-consent:^5.0
# For Filament 4.x
composer require visualbuilder/user-consent:^4.0
You can publish and run the migrations with:
php artisan vendor:publish --tag="user-consent-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="user-consent-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="user-consent-views"
This is the contents of the published config file:
return [
];
The page that users are sent to when consent is required (consent-option-request)
is resolved from config, so you can register your own subclass without having to
redefine the route — useful when you want to customise the page chrome, layout or
behaviour:
// config/filament-user-consent.php
'pages' => [
'consent_option_form_builder' => \App\Livewire\ConsentOptionFormBuilder::class,
],
// app/Livewire/ConsentOptionFormBuilder.php
use Visualbuilder\FilamentUserConsent\Livewire\ConsentOptionFormBuilder as BaseConsentOptionFormBuilder;
class ConsentOptionFormBuilder extends BaseConsentOptionFormBuilder
{
// e.g. expose a logo + theme switcher, tweak the max width, etc.
}
When the option is omitted it defaults to the package's own
Visualbuilder\FilamentUserConsent\Livewire\ConsentOptionFormBuilder.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.
How can I help you explore Laravel packages today?