Download the PHP package nematollahi/laravel-acl without Composer
On this page you can find all versions of the php package nematollahi/laravel-acl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nematollahi/laravel-acl
More information about nematollahi/laravel-acl
Files in nematollahi/laravel-acl
Package laravel-acl
Short Description you can used from acl ( access control list ) in laravel
License MIT
Informations about the package laravel-acl
hello everybody this is acl ( access control list ) for laravel 😃
[Getting Started]
1- Install the package using composer
2- Publish the package configuartion files and add your own models to the list of ACL models
-
The items that are added are:
1- added acl.php into folder config
2- added acl into folder middleware
3- added required migrations in the migration folder
4- added role and permission model
3- migrate
4- trait HasACLTools into model user
5- add acl middleware to kernal
6- call acl in provider
7- use in route
how we can use permission in project
-
Databases Required for This Section ( permissions , permissions_user )
how can i use role in projcect
-
Databases Required for This Section ( role , role_user )
- ![Watch the video]()
Tips : In version 1.1.0, you can use this piece of code to check roles.
Tips: You can also find a connection to roles and permisison in the permission_role table . 👌
[For those who read to develop]
Project Structure
but how it worked ? 🤔
-
This package has an interface that the run method should be implemented by the child's classes
-
This package contains a Trait in which there are methods for running the ACL
- And finally, we designed a class called ACL that uses the IACL interface to imply and run the run method
how can we calle it? 🤔
-
You can call the run method in the provider in the boot method
- This method allows for the creation of gates called permissions
Tips: This package is written in such a way that you can easily develop it or use design patterns such as proxy , (Just give it a proxy class) . 😎
Good Day ... ✔