Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/usamamuneerchaudhary/roles-permissions
Implementing roles and permissions in Laravel
https://github.com/usamamuneerchaudhary/roles-permissions
Last synced: about 5 hours ago
JSON representation
Implementing roles and permissions in Laravel
- Host: GitHub
- URL: https://github.com/usamamuneerchaudhary/roles-permissions
- Owner: usamamuneerchaudhary
- Created: 2017-09-19T05:33:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-02T00:16:16.000Z (over 3 years ago)
- Last Synced: 2024-03-14T20:21:01.353Z (8 months ago)
- Language: PHP
- Homepage: https://thewebtier.com/laravel/understanding-roles-permissions-laravel/
- Size: 583 KB
- Stars: 52
- Watchers: 5
- Forks: 30
- Open Issues: 10
-
Metadata Files:
- Readme: readme.MD
Awesome Lists containing this project
README
## Simple Wrapper to implement Roles & Permissions in Laravel
### Pre Requisites
- PHP >= v7.3
- Laravel >= 6.0
- Composer Dependency Manager v1.8.4 or greater### Project Setup
- Clone or fork the project on your machine.
`https://github.com/usamamuneerchaudhary/roles-permissions.git`
- Install all dependencies by running the following command in project root directory `composer install`
- Rename `.env.example` to `.env` by running the following command `mv .env.example .env`
- Configure DB settings in your `.env` file
- Run `php artisan key:generate` to generate application key.
- Run DB migrations by `php artisan migrate`
- Congrats, you're all set up & ready to go.### Optional steps
- Run DB migrations with sample seeders `php artisan migrate --seed` or `php artisan migrate:refresh --seed`