I understand I can create custom 404, 403, 500 etc pages. But I still get this response sometimes and I want to change it.
Tried googling 'Laravel custom whoops response' - nothing regarding this.
public function render($request, Exception $exception)
{
if(!in_array($exception->getCode(), [404, 403, 500])) { return view('errors.custom', ['message' => $exception->getMessage()]); }
return parent::render($request, $exception);
}
Custom response
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire