Попробуйте выполнить следующие действия:
1) В файле app / Exceptions / Handler. php измените метод визуализации.
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $exception
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception)
{
if ($this->isHttpException($exception)) {
if ($exception->getStatusCode() == 404) {
return response()->view('errors.' . '404', [], 404);
}
}
return parent::render($request, $exception);
}
2) Создать новый файл вида ошибок / 404.blade. php.
<!DOCTYPE html>
<html>
<head>
<title>Page not found - 404</title>
</head>
<body>
The page your are looking for is not available
</body>
</html>