We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86248b2 commit 85358f3Copy full SHA for 85358f3
app/Http/Middleware/AuthenticateAdmin.php
@@ -10,10 +10,10 @@
10
11
class AuthenticateAdmin
12
{
13
-
14
- protected $except = [
15
- 'admin/index'
16
- ];
+ //改属性经测试没用?
+ // protected $except = [
+ // 'admin/index'
+ // ];
17
18
/**
19
* Handle an incoming request.
@@ -23,7 +23,8 @@ class AuthenticateAdmin
23
*/
24
public function handle($request, Closure $next)
25
26
- //超级管理员已经在AuthServiceProvider.php 通过所有权限验证,故不需要再验证
+ // dd(Route::currentRouteName());
27
+ //超级管理员已经在AuthServiceProvider.php 通过所有权限验证,下面gate权限验证里会自动true绕过,这里不需要再验证?,不想经过下面Gate验证能节省资源能开启?
28
// if(Auth::guard('admin')->user()->id === 1){
29
// return $next($request);
30
// }
0 commit comments