Skip to content

ArefLaly/Laravel-Role-Based-Authentication-and-Authorization

Repository files navigation

Role Based Authentication and Authorization - Laravel 9.x

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

Requirements:

  • Laravel 9.7
  • Intervention Image

Versions:

  • Laravel 9.x & PHP -8.x

Project Setup

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

How it works

  1. Login using Super Admin Default Credential -
    1. Username - admin@123
    2. Password - admin@123
  2. Create Role and it's permissions
  3. Create user and Assign Roles to user
  4. Assign Multiple Role to user
  5. Check by login with the new credentials.
  6. If you've not enough permission to do any task, you'll get a warning message.

Wanna talk with me

Please mail me at - [email protected]

Support

If you like my work you may consider buying me a ☕ / 🍕

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published