Download the PHP package laraditz/permission-plus without Composer
On this page you can find all versions of the php package laraditz/permission-plus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laraditz/permission-plus
More information about laraditz/permission-plus
Files in laraditz/permission-plus
Package permission-plus
Short Description Laravel permission management for the lazy.
License MIT
Homepage https://github.com/laraditz/permission-plus
Informations about the package permission-plus
Laravel Permission Plus
Laravel permission management for the lazy. The permission plus is a RRBAC (Role/Route Based Access Control) which is a method to restrict access control based on the application routes and roles. (Warning: This package is still in an early stage of development and may contain bugs).
Prerequisites
- PHP 8.0+
- Laravel v8.0+
- Spatie Laravel Permission V5
Installation
You can install the package via composer:
If you don't have one, you may create a new user account to be able to access the permission plus page. Use Laravel starter kits to get ur application up and running in no time.
Setup
Run the migration command to create the necessary database table.
Add HasPermissionPlus
trait to your User
model.
(Optional) You can publish the config file via this command:
Usage
After login, go to /permission-plus/permissions
to manage your permission and you will see below page. You may click Generate
button to generate all routes in your applications to start adding permissions.
Repeat the step if you add more routes.
Deploy to production
By default, all App\Models\Users
can access Permission Page locally. To allow them to access Permission Page in production, you must take a few extra steps to ensure that only the correct users have access to the page.
To set up your App\Models\User
to access Permission Page in non-local environments, you must overwrite the canAccessPermissionPlus
method.
To Do
- [ ] Add search
- [ ] Add documentation
- [ ] Add test
- [ ] Permission for resource owner
- [ ] Auto-detect available routes
- [ ] Make a more user-friendly UI
- [ ] Optimize layout for mobile view
- [ ] Add permission for individual user
- [ ] Refactor code
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Raditz Farhan
- All Contributors
License
The MIT License (MIT). Please see License File for more information.