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
Skuul: Open-Source School Management Built on Laravel image

Skuul: Open-Source School Management Built on Laravel

Read article
Packistry is a Self-hosted Composer Repository Made with Laravel image

Packistry is a Self-hosted Composer Repository Made with Laravel

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
Laravel Query Builder image

Laravel Query Builder

Read article

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

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

Pushsilver

Pushsilver is simple invoicing for freelancers and small studios — send polished invoices, automate reminders, and get paid on time without the bloat.

Pushsilver

PhpStorm

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

PhpStorm

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum

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