One Hat Cyber Team
Your IP :
18.225.195.162
Server IP :
104.21.64.1
Server :
Linux agrigation-prod 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64
Server Software :
nginx/1.24.0
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
forge
/
gftag.com
/
app
/
Exceptions
/
View File Name :
Handler.php
<?php namespace App\Exceptions; use Illuminate\{ Auth\AuthenticationException, Foundation\Exceptions\Handler as ExceptionHandler }; use Exception; use Throwable; class Handler extends ExceptionHandler { /** * A list of the exception types that are not reported. * * @var array */ protected $dontReport = [ // ]; /** * A list of the inputs that are never flashed for validation exceptions. * * @var array */ protected $dontFlash = [ 'password', 'password_confirmation', ]; /** * Report or log an exception. * * @param \Throwable $exception * @return void * * @throws \Exception */ public function report(Throwable $exception) { parent::report($exception); } /** * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request * @param \Throwable $exception * @return \Symfony\Component\HttpFoundation\Response * * @throws \Throwable */ public function render($request, Throwable $exception) { return parent::render($request, $exception); } protected function unauthenticated($request, AuthenticationException $exception) { 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')); } }