⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ctaacademy
/
www
/
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': $response = Redirect()->guest('/admin/login'); break; case 'sanctum': $response = response()->json(['status' => 'error', 'message' => 'UnAuthenticated'], 401); break; default: $response = Redirect()->guest('/login'); } return $response; } public function render($request, Throwable $exception) { if ($exception instanceof AccessPermissionDeniedException || $exception instanceof DemoModeEnabledException) { return $exception->render($request); } return parent::render($request, $exception); } }