Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/authenticus/acl-laravel
- Owner: authenticus
- Created: 2019-07-21T03:33:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T04:56:38.000Z (almost 2 years ago)
- Last Synced: 2024-10-01T10:23:37.703Z (about 2 months ago)
- Topics: access-control, accesscontrol, acl, api, laravel, laravel5, permissions, roles
- Language: PHP
- Size: 1.36 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
*Installation Instructions:*
Run:
```
composer updatecp .env.example .env
```Manually update .env with your Database settings. Example:
```
DB_DATABASE=acl_laravelDB_USERNAME=root
DB_PASSWORD=root
```Run:
```
php artisan key:generate
php artisan migrate --seed
php artisan serve
```Go to /admin
Login: [email protected]
password: passwordYou 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');
}
```