diff --git a/src/Illuminate/Foundation/Exceptions/Handler.php b/src/Illuminate/Foundation/Exceptions/Handler.php index 9c87352d8e74..340468fe6a30 100644 --- a/src/Illuminate/Foundation/Exceptions/Handler.php +++ b/src/Illuminate/Foundation/Exceptions/Handler.php @@ -186,8 +186,13 @@ protected function renderHttpException(HttpException $e) { $status = $e->getStatusCode(); - if (view()->exists("errors.{$status}")) { - return response()->view("errors.{$status}", ['exception' => $e], $status, $e->getHeaders()); + view()->replaceNamespace('errors', [ + resource_path('views/errors'), + __DIR__.'/views', + ]); + + if (view()->exists("errors::{$status}")) { + return response()->view("errors::{$status}", ['exception' => $e], $status, $e->getHeaders()); } else { return $this->convertExceptionToResponse($e); } diff --git a/src/Illuminate/Foundation/Exceptions/views/503.blade.php b/src/Illuminate/Foundation/Exceptions/views/503.blade.php new file mode 100644 index 000000000000..53c4d2d56a5e --- /dev/null +++ b/src/Illuminate/Foundation/Exceptions/views/503.blade.php @@ -0,0 +1,62 @@ + + + + + + + + Laravel + + + + + + + + +
+
+
+ Be right back. +
+
+
+ +