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

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

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