DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 967,611 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Balaji Dharma
Balaji Dharma

Posted on • Originally published at blog.devgenius.io on

Laravel user roles and permissions

Laravel creates an admin panel from scratchβ€Šβ€”β€ŠPart 3

Laravel creates an admin panel from scratch
Photo by Danielle Rice on Unsplash

In the last part, we completed user Authentication for our admin panel. In this part, we going to implement user roles and permissions.

Multiple user roles and permission controls are required features for the admin panel.

The Spatie Laravel-permission package

The Spatie Laravel-permission is the best package to manage user permissions and roles in a database. In this part, we install and use this package for our admin panel.

The following steps are involved to set up roles and permission to our Laravel Admin panel.

  • 1. Install Spatie Laravel-permission package
  • 2. Publish the configuration and migration file
  • 3. Running Migration

.
.
.
.

Read full story on medium.com


Previous partβ€Šβ€” β€Š Part 2: Steps for adding a user authentication to the Laravel application

Next partβ€Šβ€”β€ŠPart 4: Laravel CRUD creation for permission management


Oldest comments (0)

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.