authenticus / acl-laravel

API-based Access Control (Roles, Permissions) for Users of your Laravel App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation Instructions:

Run:

composer update

cp .env.example .env

Manually update .env with your Database settings. Example:

DB_DATABASE=acl_laravel

DB_USERNAME=root

DB_PASSWORD=root

Run:

php artisan key:generate
php artisan migrate --seed
php artisan serve

Go to /admin Login: admin@admin.com password: password

You can add users, roles, permissions, etc. from the admin interface. You can protect your requests from unauthenticated use, like so:

In app//Http/Requests/StoreUserRequest.php:

public function authorize()
{
return \Gate::allows('user_create');
}

About

API-based Access Control (Roles, Permissions) for Users of your Laravel App


Languages

Language:PHP 63.8%Language:HTML 36.0%Language:Vue 0.2%