mttzzz / dk-role-permission-tool
A Laravel Nova tool.
1.1.6
2024-07-31 21:46 UTC
Requires
- php: ^8.0
- eminiarts/nova-tabs: ^2.2
- pavloniym/nova-options-selector: *
- spatie/laravel-permission: ^6.0
README
Requirements
php: >=8.0
laravel/nova: ^4.1
Installation
Install the package in a Laravel Nova project via Composer:
composer require mttzzz/dk-role-permission-tool
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
php artisan vendor:publish --provider="Mttzzz\DkRolePermissionTool\ToolServiceProvider"
php artisan migrate
php artisan dk-role-permission:seed
Usage
add meunu in NovaServiceProvider
use Mttzzz\DkRolePermissionTool\DkRolePermissionTool; class NovaServiceProvider extends NovaApplicationServiceProvider { public function boot() { parent::boot(); Nova::mainMenu(function (Request $request) { return [ ..... (new DkRolePermissionTool)->menu($request), ..... ]; });
License
This project is open-sourced software licensed under the MIT license.