| Package Data | |
|---|---|
| Maintainer Username: | laraturka |
| Maintainer Contact: | kadir@kadir.info (Kadir YILMAZ) |
| Package Create Date: | 2016-11-16 |
| Package Last Update: | 2025-10-03 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-21 15:02:45 |
| Package Statistics | |
|---|---|
| Total Downloads: | 323 |
| Monthly Downloads: | 22 |
| Daily Downloads: | 5 |
| Total Stars: | 3 |
| Total Watchers: | 2 |
| Total Forks: | 2 |
| Total Open Issues: | 0 |
Role Based Access Control for Laravel
Copy migrate and seed files and migrate with seed.
Add route middleware for acl app/Http/Kernel.php 'acl' => \Laraturka\Acl\AclMiddleware::class,
Add AclPolicy referance to Providers. app/Http/Providers/AuthServiceProvider.php
User::class => AclPolicy::class,
Create route group with middleware
Route::group(['prefix'=>'admin', 'middleware' => ['auth','acl','nocache']], function() {
//what ever you want to route
});