Allow users to have multiple role using REST API with Sanctum
.
This allows you to give multiple roles for a user ->
Admin
Blogwriter
User
* Create Project
* Single Project View
* All Project List
* Delete Project
* Create Project
* Single Project View
* All Project List
* All Project List
== Installation ==
git clone https://github.com/taraqr9/MultiUserRole.git
cd multiuserrole
cp .env.example .env
composer install
php artisan migrate:refresh --seed
Then test it with postman api tester.
- Laravel
- Laratrust ( User Role)
- Sanctum ( Login token)