Download the PHP package sourceboat/laravel-static-permission without Composer
On this page you can find all versions of the php package sourceboat/laravel-static-permission. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sourceboat/laravel-static-permission
More information about sourceboat/laravel-static-permission
Files in sourceboat/laravel-static-permission
Package laravel-static-permission
Short Description Define laravel permissions and roles by code
License MIT
Homepage https://github.com/sourceboat/laravel-static-permission
Informations about the package laravel-static-permission
laravel-static-permission
Manage user permissions and roles in your Laravel application by domain driven rules.
- Installation
- Usage
- Using roles
- Using permissions
- Using Blade directives
- Config
Example
Define roles and permissions in config/permission.php
.
Check permissions by
Installation
Usage
Add trait to model
Using roles
Define roles in config/permission.php
.
Assign role
Add a role to a model.
Check role
Check role via:
Using permissions
Permissions are based on the MQTT syntax and specified as path. Thus, individual security levels can be mapped and generally released via wildcards.
Check permissions
Configuration
+
Wildcard for one level#
Wildcard for everything following!
Before the permission - prohibits permission
Define roles and permissions in config/permission.php
.
Using Blade directives
Use Blade directives in your views.
Role
Permission
Use several permissions.
Middleware
Add the middleware to your src/Http/Kernel.php
And use it like
Config
Example Config
Testing
Changelog
See releases for details.
Contributing
Credits
This package is heavily inspired by Spatie / laravel-permission.
- Philipp Kübler
- Tristan Damm
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-static-permission with dependencies
illuminate/support Version ^6.0|^7.0|^8.0|^9.0
illuminate/view Version ^6.0|^7.0|^8.0|^9.0
illuminate/http Version ^6.0|^7.0|^8.0|^9.0