Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel permission

protected $routeMiddleware = [
    // ...
    'role' => SpatiePermissionMiddlewaresRoleMiddleware::class,
    'permission' => SpatiePermissionMiddlewaresPermissionMiddleware::class,
    'role_or_permission' => SpatiePermissionMiddlewaresRoleOrPermissionMiddleware::class,
];
Source by spatie.be #
 
PREVIOUS NEXT
Tagged: #Laravel #permission
ADD COMMENT
Topic
Name
4+6 =