for managing user roles and permission
to managing your system's authority and permission menu, (*1)
In much more complext system information, sometimes it will take a hard times to manage menu and give some roles for user. When your system become more complex and bigger, user roles become more important to achieve. You have to integrate your menu, roles and your user. This package contain some management system for having all those issue in one solution. You can manage menu You can manage event/role, such as admin, view only, save only, request, approve, etc You can manage group user You can manage all of them in permission, (*2)
The preferred method of installation is via [Packagist][] and [Composer][]. Run the following command to install the package and add it as a requirement to your project's composer.json
:, (*3)
composer require rijolee/authmanager
edit your config/app.php then in your provider section add, (*4)
'providers' => [ /* * Laravel Framework Service Providers... */ ... rijolee\AuthManager\AuthManagerServiceProvider::class,
This package contain migration file that create default tables that for authmanager, to do it just command, (*5)
php artisan migrate
this package contain asset js publish this by command, (*6)
php artisan publish:vendor
this package contain middleware that require Auth which is only user that have name authmanager can login into this authority manager ui so you will have to register this username into your application, (*7)
this package extends User Model that have primary key 'user_id' so modify your user model ```bash protected $primaryKey = 'user_id';, (*8)
## Getting Start to access the view to manager authmanager just put url /auhmanager in your browser ```bash http://yourproject/authmanager
voila! you can manage your authority menu and permission for your project, (*9)
you can access function hasEvents($event_id, $menu_id) inside Users Model that return true or false based on your menu id and event id so you can use it in your system to know wether this user allow some function in your system e.q(rijolee\AuthManager\Model\Users::find(1)->hasEvents('E1','M1')), (*10)
you can access route /authmanager/getmenu/{sys}/{rootid} to return JSON data your menu based on parameter your system name {sys} and your root id {rootid} note: system name information is column in menu table, type 'all' if you wanna get all data, (*11)
there will be further documentation for this package, (*12)