/home/techb158/dev.balacoffee.com/app/Exceptions
NameSizeModeActions
Handler.php32900644editdlrm
Edit: /home/techb158/dev.balacoffee.com/app/Exceptions/Handler.php (3290B)
expectsJson()) { // $this->destroyCookie('Stocky_token'); // return response()->json([ // 'message' => 'Unauthenticated.', // 'status' => 401, // ], 401); // } // } public function render($request, Throwable $exception) { if ($exception instanceof \Illuminate\Database\Eloquent\ModelNotFoundException) { return response()->json([ 'message' => 'Not found', 'status' => 404, ], 404); }else if ($exception instanceof \Illuminate\Auth\Access\AuthorizationException) { return response()->json([ 'message' => 'You are not authorized', 'status' => 403, ], 403); } return parent::render($request, $exception); } }