qmetrics.net

laravel-permission

Laravel roles and permissions management package

laravel-permission screenshot

A Laravel package that stores roles and permissions in your database and wires them to users, with helpers to assign capabilities and check access through Laravel's gate and Blade.

Overview

Laravel Permission lets Laravel applications define named permissions (specific abilities such as editing articles) and roles (grouped permissions) persisted in the database. After installation you assign permissions or roles to user models and grant permissions to roles using the package's API methods.

Permissions register with Laravel's authorization gate, so you can test access with the framework's built-in can checks on users and use Blade authorization directives in views. The API covers giving permissions directly, assigning roles, and attaching permissions to roles.

The package supports multiple authentication guards, each with its own set of roles and permissions assignable to that guard's users. Installation, configuration, and upgrade steps are covered in more detail in extended package documentation.

It extends a Laravel app rather than running as standalone software; authorization rules live in your application's database and integrate with standard Laravel patterns for policies and gates.

Key features

  • Database-backed roles and permissions
  • Assign permissions and roles to users
  • Permissions registered on Laravel gate
  • Blade @can authorization directives
  • Grant permissions through roles
  • Multiple guard support
  • givePermissionTo and assignRole helpers

Use cases

  • Fine-grained abilities per application user
  • Grouping permissions into writer or admin roles
  • Authorization checks in controllers and views
  • Separate permission sets per auth guard
  • Role-based access in multi-tenant Laravel apps

Tags

Similar software

Auth.js

Web authentication libraries for JavaScript frameworks

Auth.js (NextAuth) adds sign-in, sessions, and OAuth to modern JavaScript apps. Packages target Next.js, SvelteKit, Express, Qwik, and other runtimes.

  • OAuth 2.0 and OIDC providers
  • Email and passwordless sign-in
  • WebAuthn passkey support
TypeScriptDetails →
★ 28.4k⟳ 4 months agoISC
Open Source Alternative to:Amazon CognitoAuth0+4

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.

  • Rack and Warden integration
  • Pluggable authentication modules
  • Rails engine MVC stack
RubyDetails →
★ 24.3k⟳ 1 month agoMIT

Sa-Token

Java lightweight permission and session framework

Sa-Token adds login, permission checks, SSO, OAuth2, and microservice gateway auth to Java web projects with minimal boilerplate.

  • Login and permission annotations
  • Distributed session with Redis
  • Built-in SSO mode variants
JavaDetails →
★ 19.1k⟳ 16 days agoApache-2.0

jsonwebtoken

Node.js library for signing and verifying JSON Web Tokens

jsonwebtoken implements JWT creation and verification for Node.js using HMAC, RSA, ECDSA, and related algorithms. It exposes sign, verify, and decode helpers built on node-jws.

  • JWT sign and verify APIs
  • HMAC and asymmetric algorithms
  • Standard claim options
JavaScriptDetails →
★ 18.2k⟳ 5 months agoMIT

JustAuth

Java library for third-party OAuth login

JustAuth is a Java component that wires social and enterprise OAuth providers into applications without vendor-specific SDKs. It exposes a small API with builder-style configuration.

  • Dozens of built-in OAuth providers
  • Builder and plain API styles
  • Custom OAuth platform adapters
JavaDetails →
★ 17.6k⟳ 1 year agoMIT
Identity & Access Management (IAM)No commits in 18+ months

CASL

Isomorphic TypeScript authorization for apps and APIs

CASL limits which resources a user may access using declarative rules shared across frontend, backend, and database layers.

  • Declarative ability rules
  • RBAC and ABAC support
  • Frontend and backend use
TypeScriptDetails →
★ 7.1k⟳ todayMIT