A project which manage Role, Permissions and every actions of your Laravel application. A complete solution for Role based Access Control in Laravel.
Default Username
Username - admin@123
password - admin@123
- Laravel
9.7
- Intervention Image
- Laravel
9.x
& PHP -8.x
Git clone -
git clone https://github.com/ArefLaly/Laravel-Role-Based-Authentication-and-Authorization.git
Go to project folder -
cd Laravel-Role-Based-Authentication-and-Authorization
Install Laravel Dependencies -
composer install
Create .env
file by copying .env.example
file
Generate Artisan Key (If needed) -
php artisan key:generate
Migrate Database with seeder -
php artisan migrate --seed
Run Project -
php artisan serve
- Login using Super Admin Default Credential -
- Username -
admin@123
- Password -
admin@123
- Username -
- Create Role and it's permissions
- Create user and Assign Roles to user
- Assign Multiple Role to user
- Check by login with the new credentials.
- If you've not enough permission to do any task, you'll get a warning message.
Please mail me at - [email protected]
If you like my work you may consider buying me a ☕ / 🍕