DEV Community

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


Top comments (0)