qmetrics.net

Laravel Permission

Database-backed roles and permissions for Laravel applications

Laravel Permission screenshot

Laravel Permission stores roles and permissions in the database and wires them to users, guards, and Laravel’s authorization gate.

Overview

Laravel Permission is a Spatie package for Laravel that manages authorization data in the database. Permissions represent specific capabilities such as editing content, while roles group permissions that you assign to users or other models.

After installation, application code can grant permissions directly, assign roles, and attach permissions to roles. Each guard can maintain its own permission and role sets when an app uses multiple authentication guards.

Because permissions register with Laravel’s gate, standard authorization checks and Blade directives work with permission names. Teams use it to replace ad hoc boolean flags with a consistent role and permission model across routes, policies, and views.

The package builds on established Laravel training patterns for roles and permissions and is maintained as a widely used add-on for permission-heavy business applications.

Key features

  • Permissions stored in the database
  • Roles grouping multiple permissions
  • Assign roles and permissions to users
  • Multiple guard support
  • Integration with Laravel Gate
  • Blade @can authorization directives
  • givePermissionTo and assignRole APIs
  • Role–permission assignment helpers

Use cases

  • Admin versus editor access tiers
  • Fine-grained feature toggles per user
  • Multi-guard API and web authorization
  • Centralizing capability checks in policies
  • Managing writer-style role templates

Tags

Similar software

Better Auth

Composable TypeScript authentication and authorization framework

Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. You configure it in code and extend it with plugins for flows like social login, organizations, and enterprise SSO.

★ 30.9k⟳ todayMIT
Open Source Alternative to:Stytch

Devise

Modular authentication engine for Ruby on Rails

Devise adds sign-in, registration, and related account flows to Rails apps through a Warden-backed engine. Teams enable only the authentication modules they need for each user model.

★ 24.3k⟳ 1 month agoMIT
Frameworks & PlatformsDesktop/CLI app

go-admin

Gin and Vue admin backend scaffold with RBAC

A separated front-end and back-end starter for admin panels built on Gin and Vue. It ships user management, JWT auth, Casbin RBAC, code generation, and optional multi-tenancy.

★ 12.8k⟳ 1 month agoMIT

Nebular

Customizable Angular UI kit on Eva Design System

Nebular is an Angular UI library with themes, components, and optional auth and security modules. It follows Eva Design System specs with runtime theme switching.

★ 8.1k⟳ 10 months agoMIT
Frameworks & PlatformsDesktop/CLI app

RuoYi Vue3

Vue 3 admin frontend for separated permission systems

RuoYi Vue3 is the official front end for the RuoYi line: Vue 3, Vite, Element Plus, and Pinia paired with a Spring Boot permission backend.

★ 6.8k⟳ 3 days agoMIT

Nest Admin

NestJS and Vue RBAC admin starter

Separated admin stack: NestJS REST API with MySQL, TypeORM, Redis, and JWT, plus a Vue 3 Ant Design Vue front end with fine-grained RBAC.

★ 2.3k⟳ 26 days agoMIT