Package

Spatie Laravel Permission

Permission handling for Laravel 8.0 and up

Package

spatie/laravel-permission

View on GitHub →

Overview

What Spatie Laravel Permission does

Spatie's Laravel Permission package provides a comprehensive system for handling user permissions and roles in Laravel applications.

The package integrates directly with Laravel's authorization gates, allowing developers to manage complex user access requirements through familiar syntax. Utilizing database-backed permission and role assignments, it offers a robust alternative to Laravel's default authorization capabilities.

Developers can assign permissions to users or roles, which can then be checked using Laravel's built-in `can` method. This means existing code can seamlessly incorporate permission checks, offering a consistent approach to managing user capabilities across the application. For example, a role can be configured with specific permissions, which are then inherited by users assigned to that role.

Spatie encourages users who deploy the package in production to send them a postcard, fostering a unique community interaction. Positioned alongside other role and permission packages like Bouncer and Laratrust, Laravel Permission stands out with a straightforward API and strong community support.

This package suits developers building applications where finely-grained user control is crucial. Whether it's an e-commerce platform, content management system, or a custom SaaS solution, Laravel Permission integrates effortlessly, enhancing the application's authorization layer without compromising on flexibility or ease of use.

This overview was generated by AI from the package README and may not reflect the latest release.

Read the full README →

Spatie Laravel Permission Related Articles

Laravel Jetstream: Add CRUD with Spatie Permission image

Laravel Jetstream: Add CRUD with Spatie Permission

Read article
Media Library Pro: Vue, React and Blade components to handle uploads (sponsor) image

Media Library Pro: Vue, React and Blade components to handle uploads (sponsor)

Read article
Two Best Laravel Packages to Manage Roles/Permissions image

Two Best Laravel Packages to Manage Roles/Permissions

Read article
Spatie Shares Their Coding Guidelines as AI Skills image

Spatie Shares Their Coding Guidelines as AI Skills

Read article
DirectoryTree Authorization is a Native Role and Permission Management Package for Laravel image

DirectoryTree Authorization is a Native Role and Permission Management Package for Laravel

Read article
Image Optimization With Spatie Laravel Image Optimizer image

Image Optimization With Spatie Laravel Image Optimizer

Read article

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing