Laravel Simple Permissions is a lightweight library designed to simplify permissions management in Laravel projects.
- Easily integrate permissions into your Laravel application.
- Assign and validate permissions on users.
- Supports Laravel's built-in user authentication system.
- PHP >= 7.3
- Laravel >= 8.0
- Laravel Breeze (Laravel's authentication features)
Laravel Simple Permissions works with Laravel's authentication features. Please install this before install Laravel Simple Permissions. You can follow instructions here: https://laravel.com/docs/10.x/starter-kits#laravel-breeze
You can install the package via composer:
composer require pedrazadixon/laravel-simple-permissionsFinish the installation with the following command:
php artisan laravel-simple-permissions:installRoute::get('/dashboard', function () {
return view('dashboard');
})->middleware(['auth', 'verified', 'permissions'])->name('dashboard');You can create permissions navigate the following route:
You can publish the views with:
php artisan vendor:publish --tag=laravel-simple-permissions-views