📌  相关文章
📜  不同用户的路由 url 权限访问 - 任何代码示例

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

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