auth-rbac

Implement Laravel RBAC with Guards, Policies, Gates, and Spatie permissions.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/VictorSmaniotto/degestao --skill auth-rbac
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-rbac
Source: https://github.com/VictorSmaniotto/degestao/tree/main/.agent/skills/auth-rbac
Command: npx skills add https://github.com/VictorSmaniotto/degestao --skill auth-rbac

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implements authentication and role-based access control in Laravel, providing a structured approach to manage user permissions and secure routes.

Core Features & Use Cases

  • RBAC with Guards, Policies, Gates and Spatie permissions to model diverse access control scenarios.
  • Role and permission management, with auditing hooks to track access events.
  • Easy routing protection and policy enforcement across controllers and views.

Quick Start

Define roles and permissions and apply middleware to protect routes and controllers.

Frequently Asked Questions about auth-rbac

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement role-based access control in Laravel?

You implement role-based access control in Laravel by defining roles and permissions, then applying middleware to protect routes and controllers, utilizing Gates, Policies, and Spatie Permission for granular enforcement.

What is the best way to manage granular user permissions in Laravel?

The best way to manage granular permissions in Laravel is by using Gates and Policies together with Spatie permissions, allowing you to define specific access rules and apply middleware to protect routes.

Can I use Laravel Gates and Policies with Spatie Permission together?

Yes, you can use them together. This framework integrates Guards, Policies, Gates, and Spatie permissions to model diverse access control scenarios and enforce rules across controllers and views.

How do I add auditing to track role-based access events in Laravel?

You add auditing to track access events in Laravel by using the framework's built-in auditing hooks, which monitor and log access events alongside your role and permission management implementation.

How do I protect Laravel routes using RBAC middleware?

You protect Laravel routes using RBAC middleware by defining roles and permissions within your application and then applying the middleware to routes and controllers to enforce access control.