Answers for "laravel-permission update permissions"

PHP
9

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
1

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
0

Laravel-permission update name

This package does not offer a "rename" command.
Therefore, if you're renaming a role or permission, 
that means you've been editing the database contents directly. 
If you're going to do direct edits to database data, then you'll 
also need to manually clear the cache as described in the README.
Posted by: Guest on April-25-2022

Browse Popular Code Answers by Language