manukminasyan/laravel-permission-manager
Composer 安装命令:
composer require manukminasyan/laravel-permission-manager
包简介
Create and manage your all permissions and routes
关键字:
README 文档
README
LaravelPermissionManager
LaravelPermissionManager - It is a modern and dynamic permission management system based on Bouncer.
Introduction
If you need to speed up project development, and you need to use permissions and roles in your project,
This package is perfect for you.

Installation
Install PermissionManager with composer:
$ composer require manukminasyan/laravel-permission-manager
The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:
'providers' => [ // ... ManukMinasyan\LaravelPermissionManager\LaravelPermissionManagerServiceProvider::class, ];
You can publish all the necessary files with:
php artisan vendor:publish --provider="ManukMinasyan\LaravelPermissionManager\LaravelPermissionManagerServiceProvider"
This is the contents of the published config file:
return [ 'database' => [ 'option_table' => 'permission_manager_options', 'model_table' => 'permission_manager_models', 'group_table' => 'permission_manager_groups', 'route_table' => 'permission_manager_routes', 'route_permission_table' => 'permission_manager_route_permission' ], 'user_model' => \App\User::class, 'middleware' => [ 'web', 'auth' ], 'route' => 'permission-manager' ];
Add Bouncer's trait to your user model:
use Silber\Bouncer\Database\HasRolesAndAbilities; class User extends Model { use HasRolesAndAbilities; }
Finally, run the migrations:
php artisan migrate
Congratulations, you have successfully set up the project. You can access the permission manager control panel using the URI "/permission-manager".
Important information
The development of the package is not complete fully. you can install and evaluate my work. Thanks
统计信息
- 总下载量: 89
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 89
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-01
