Downloads
Stars
Version
larave5 RBAC权限管理,多表用户权限判断
composer require sowork/yauth dev-master
config/app.php
文件中providers
数组中注册提供者 Sowork\YAuth\YAuthServiceProvider::class,
,在config/app.php
文件aliases
数组中注册'YAuth' => Sowork\YAuth\YAuthServiceProvider::class,
php artisan vendor:publish
会发布配置文件和数据库迁移文件,单独发布如下。php artisan migrate
AppServiceProvider
的register
方法中调用YAuth::ignoreMigrations();
使用php artisan vendor:publish --tag=yauth-migrations
导出默认迁移表php artisan vendor:publish --tag=yauth-config