芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/erp.digitalhubbd.com/app/Exceptions/Handler.php
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); } }