Courses

Roles and Permissions in Laravel 11

  • 13 lessons
  • 19021 words

This content is available only for premium members.

About this course

There are many ways to implement roles/permissions in Laravel, so the goal of this course is to cover the most common scenarios, starting from simple ones and finishing with a complex project.

We will cover:

  • Gates/Policies
  • Popular spatie/laravel-permission package
  • Single/multiple Roles per User
  • Single/multiple Teams per User

The lessons are quite long. Each lesson contains one full project about Task Management with different roles/permissions logic and with a link to the repository/branch at the end.

Each repository includes automated Pest tests. I want to emphasize how important it is to cover permission logic through tests because it's one of the main security risks for projects, with the most significant consequences if it is not tested properly.

So, let's dive into our first project!