Registry / auth / santigarcor-laratrust

santigarcor-laratrust

JSON →
library8.5.5phppackagistunverified

This package provides a flexible way to add Role-based Permissions to Laravel

composer require santigarcor/laratrust
INSTALL
IMPORT
SIG · SANTIGARCOR-LARATR
S
santigarcor-laratrust
authphpv8.5.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Laratrust
use Laratrust\Laratrust;

Checking if user has admin role

use Laratrust\Laratrust; $laratrust = new Laratrust(); if ($laratrust->hasRole('admin')) { // admin logic }
Debug
Known issues
breakingRequires Laravel 5.5+
fix
Upgrade Laravel to version 5.5 or higher
affects: <8.0.0
Upgrade
Version history
8.5.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
santigarcor-laratrust — pip install santigarcor-laratrust · libregistry