📜  laravel 文件夹权限 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:17.798000             🧑  作者: Mango

代码示例6
protected $routeMiddleware = [
    // ...
    'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
    'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class,
    'role_or_permission' => \Spatie\Permission\Middlewares\RoleOrPermissionMiddleware::class,
];