callcocam / acl
This is my package acl filament v3 for laravel
Requires
- php: ^8.1
- callcocam/profile: dev-main
- callcocam/tall-sluggable: dev-main
- doctrine/dbal: ^3.7
- filament/filament: ^3.0
- illuminate/contracts: ^10.0
- leandrocfe/filament-ptbr-form-fields: ^3.0
- owenvoke/blade-fontawesome: ^2.4
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2025-02-23 23:36:20 UTC
README
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
composer require callcocam/acl
Execute the command
php artisan app:acl-install
Run the command again
php artisan app:acl-install
OR
You can publish and run the migrations with:
php artisan vendor:publish --tag="acl-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="acl-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="acl-views"
Remember to install the plugin on Your Provider
use Callcocam\Acl\AclPlugin;
return $panel
...
->plugin(new AclPlugin())
...
``
You can also release the User Resource by going through paramentar
use Callcocam\Acl\AclPlugin;
return $panel ... ->plugin(new AclPlugin(userUserResources:true)) ... ``
Command to recreate or update the permissions base
php artisan app:acl-generate-permissions
Command to create configured policies
php artisan app:acl-policy
Testing
composer test
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
License
The MIT License (MIT). Please see License File for more information.