2017 © Pedro Peláez
 

laravel-package yauth

laravel rbac package

image

sowork/yauth

laravel rbac package

  • Thursday, March 22, 2018
  • by sowork
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

yauth

larave5 RBAC权限管理,多表用户权限判断, (*1)

安装

  • composer安装 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
  • 如果你不想使用默认yauth的数据库表,或者想基于yauth表进行修改,需要在AppServiceProviderregister方法中调用YAuth::ignoreMigrations();使用php artisan vendor:publish --tag=yauth-migrations导出默认迁移表
  • 配置文件发布 php artisan vendor:publish --tag=yauth-config

中间件

API调用

The Versions

22/03 2018

dev-master

9999999-dev

laravel rbac package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar sowork

laravel rbac yauth

06/02 2018

v0.1

0.1.0.0

laravel rbac package

  Sources   Download

MIT

The Development Requires

by Avatar sowork

laravel rbac yauth