PHP Package: spatie/laravel-permission

A powerful Laravel package for managing user permissions and roles efficiently with ease of use.

Current Version: 6.21.0
Last Updated: 2025-07-23
PHP Requirement: ^8.0
Dependencies: None

Package Description

Laravel Permission simplifies the process of authorization and access control in Laravel applications. With this package, you can easily assign permissions and roles to users, manage authorization logic, and secure your application effectively.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 6.21.0

Download Download v6.21.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com

require_once 'libs/spatie/laravel-permission/6.21.0/loader.php';
use Spatie\Permission\Models\Permission;
use Spatie\Permission\Models\Role;

$obj = new Permission();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.