芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/bit-alphas-ltd.com/user/project/app/Http/Middleware/Permissions.php
check()) { if(Auth::guard('admin')->user()->id == 1){ return $next($request); } if(Auth::guard('admin')->user()->role_id == 0){ return redirect()->route('admin.dashboard')->with('unsuccess',"You don't have access to that section"); } if (Auth::guard('admin')->user()->sectionCheck($data)){ return $next($request); } } return redirect()->route('admin.dashboard')->with('unsuccess',"You don't have access to that section"); } }