Download the PHP package mbober35/role-rule without Composer
On this page you can find all versions of the php package mbober35/role-rule. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package role-rule
RoleRule
Install
Установить Helpers
php artisan migrate
php artisan role-rule
php artisan role-rule:make
Добавить модели User трейт ShouldRole
Публикация конфигурации:
php artisan vendor:publish --provider="MBober35\RoleRule\ServiceProvider" --tag=config
Commands
Добавить пользователю роль админа:
role-rule:admin
{--email= : find user by email}
{--id= : find user by id}
Создать стандартные роли, которые нельзя удалить:
role-rule:default
Сгенерировать правила политик:
role-rule:make
Gates
app-management
- Должно быть право "Управление приложением"role-management
- Должно быть право "Управление ролями"settings-management
- Только админ
Middlewares
management
- Gateapp-management
super
- Gatesettings-management
role-master
- Gaterole-master
All versions of role-rule with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.3|^8.0
laravel/framework Version ^8.0
mbober35/helpers Version ^1.0
mbober35/starter Version ^1.0
laravel/framework Version ^8.0
mbober35/helpers Version ^1.0
mbober35/starter Version ^1.0
The package mbober35/role-rule contains the following files
Loading the files please wait ....