⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
audiostanding.com
/
app
/
Exceptions
/
View File Name :
Handler.php
*/ protected $dontFlash = [ 'current_password', 'password', 'password_confirmation', ]; /** * Register the exception handling callbacks for the application. */ public function register(): void { $this->reportable(function (Throwable $e) { // }); } protected function unauthenticated($request, AuthenticationException $exception) { if ($request->expectsJson()) { return response()->json(['message' => 'UnAuthenticated'], 401); } $guard = Arr::get($exception->guards(), '0'); switch ($guard) { case 'admin': $login = '/admin/login'; break; default: $login = '/login'; } return Redirect()->guest($login); } public function render($request, Throwable $exception) { if ($exception instanceof AccessPermissionDeniedException || $exception instanceof DemoModeEnabledException) { return $exception->render($request); } return parent::render($request, $exception); } }