PHP Package: santigarcor/laratrust

Laratrust is a powerful and flexible package for Laravel that handles roles and permissions, providing a robust security layer for your application.

Current Version: 8.5.1
Last Updated: 2025-10-08
PHP Requirement: >=8.1
Dependencies:
laravel/framework
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Laratrust is a comprehensive package designed to manage user roles and permissions seamlessly within Laravel applications. It offers a simple yet effective solution for implementing access control lists (ACL) and defining authorization logic. With Laratrust, developers can easily assign roles, permissions, and manage user access, ensuring a secure and organized environment for their projects.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 8.5.1

Download Download v8.5.1

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/santigarcor/laratrust/8.5.1/loader.php';
require_once 'libs/laravel/framework/{lib_version}/loader.php';

use Santigarcor\Laratrust\Laratrust;
use Santigarcor\Laratrust\Role;

$obj = new Laratrust();
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.