New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

sowork/yauth

laravel rbac package
30
Install
composer require sowork/yauth
Latest Version:v0.1
License:MIT
Last Updated:Mar 22, 2018
Links: GitHub  ·  Packagist
Maintainer: sowork

yauth

larave5 RBAC权限管理,多表用户权限判断

安装

  • 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表进行修改,需要在AppServiceProvider的register方法中调用YAuth::ignoreMigrations();使用php artisan vendor:publish --tag=yauth-migrations导出默认迁移表
  • 配置文件发布 php artisan vendor:publish --tag=yauth-config

中间件

API调用

Related Packages

binary-cats/laravel-rbac

Laravel enum-backed RBAC extension of spatie/laravel-permission

49,764 80
mnshankar/role-based-authority

Modifies Authority-L4 to use Roles (instead of users) as the central unit of pre...

3,803 32
smart-crowd/laravel-rbac

Laravel RBAC implementation.

1,257 15
wesleyalmeida/form-builder

Object-Oriented helper for building forms in Laravel.

71 0

Version History

Version Released License
v0.1 MIT