⚝
One Hat Cyber Team
⚝
Your IP:
18.224.66.138
Server IP:
162.254.39.145
Server:
Linux premium289.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
favoaysf
/
public_html
/
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')); } }