cemleme / cmauth2 by cemleme

cmauth laravel 5.1.11 rbac
50
1
3
Package Data
Maintainer Username: cemleme
Maintainer Contact: cemadil@gmail.com (Cem Adiloglu)
Package Create Date: 2015-11-24
Package Last Update: 2015-12-03
Language: PHP
License: MIT
Last Refreshed: 2024-11-26 15:19:39
Package Statistics
Total Downloads: 50
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 3
Total Forks: 0
Total Open Issues: 0

Cmauth2 is a Role Based Access Control Authentication package developed for Laravel 5.1.11 applications. You can creating unlimited Groups (Roles) and Permissions and assign your users to Groups.

Afterwards you can use your filters and facades to check if the logged in user has proper permission for the current route / controller / method / view part.

In the require key of composer.json file add the following

"cemleme/cmauth2": "dev-master"

Run the Composer update comand

$ composer update cemleme/cmauth

In your config/app.php add CmauthServiceProvider to the end of the providers array

'providers' => [
    ...
    'Cemleme\Cmauth\CmauthServiceProvider',
],

Assign same User model at config/auth.php

'model' => 'Cemleme\Cmauth\models\User'  //(or \App\User if you extend \Cemleme\Cmauth\models\User)

Publish config file config/cmauth.php using artisan publish command:

php artisan vendor:publish --provider="Cemleme\Cmauth\CmauthServiceProvider"