芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/bit-alphas-ltd.com/user/project/app/Exceptions/Handler.php
reportable(function (Throwable $e) { // }); } protected function unauthenticated($request, AuthenticationException $exception) { if ($request->expectsJson()) { return response()->json(['error' => 'Unauthenticated.'], 401); } if ($request->is('admin') || $request->is('admin/*')) { return redirect()->guest('/admin/login'); } if ($request->is('user') || $request->is('user/*')) { return redirect()->guest('/user/login'); } return redirect()->guest(route('user.login')); } }