Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yanikkumar/laravel-roles-permissions
https://github.com/yanikkumar/laravel-roles-permissions
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yanikkumar/laravel-roles-permissions
- Owner: yanikkumar
- Created: 2023-05-31T16:00:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-18T18:34:48.000Z (over 1 year ago)
- Last Synced: 2024-02-05T07:29:17.783Z (11 months ago)
- Language: PHP
- Size: 191 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Roles and Permissions
Simple Role Based Authentication For Laravel Projects> Created Laravel Project Configure DB.
> Installed Laravel Breeze for Authentication Scaffolding.
> Removed is_admin in users migrations
> Created Roles and Permissions Tables
> Created DB seeds for Admin, Created Relationship between user and roles model with permissions
> Set default user role to 1 in UserController
> Setup Admin Layout Dashboard
> Setup AdminMiddleware with isAdmin() function in users model
> Made common HasRoleMiddleware and hasRole() for all roles and removed AdminMiddleware and isAdmin()
> Created Roles and Permissions Route For CRUD Operation
> Displaying Roles & Permissions in Admin Dashboard
> Create Page For Roles and Permissions
> Store New Roles and Permissions
> Update Roles and Permissions
> Delete Roles and Permissions
> Assign Permissions to the Role
> Created Users index page showing users and their roles
> Update and asign role to the user
> Delete Users
> Created fake posts using factory
> Displaying all the posts
> Added policies for posts creation by roles only
> Authorize user for creating new posts
> Authorize the admin for all actions
> Authorization for update and delete
> Custom Admin blade directive