Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/authenticus/acl-laravel

API-based Access Control (Roles, Permissions) for Users of your Laravel App
https://github.com/authenticus/acl-laravel

access-control accesscontrol acl api laravel laravel5 permissions roles

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

*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: [email protected]
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');
}
```