Answers for "permission or permission in laravel in permission package"

PHP
2

laravel file permissions

sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
Posted by: Guest on September-09-2020
0

Laravel permission

protected $routeMiddleware = [
    // ...
    'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
    'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class,
    'role_or_permission' => \Spatie\Permission\Middlewares\RoleOrPermissionMiddleware::class,
];
Posted by: Guest on July-19-2021

Browse Popular Code Answers by Language