⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.229
Server IP:
95.217.99.93
Server:
Linux sv1.sonichosted.com 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
lifestylescentra
/
public_html
/
app
/
Exceptions
/
View File Name :
AccessPermissionDeniedException.php
<?php namespace App\Exceptions; use Exception; use Illuminate\Http\JsonResponse; use Illuminate\Http\RedirectResponse; use Illuminate\Routing\Redirector; class AccessPermissionDeniedException extends Exception { public function render($request): Redirector|RedirectResponse|JsonResponse { if ($request->expectsJson()) { return response()->json([ 'alert-type' => 'error', 'message' => __('Permission Denied, You can not perform this action!'), ], 403); } return redirect()->back()->with([ 'alert-type' => 'error', 'message' => __('Permission Denied, You can not perform this action!'), ]); } }