diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 9c59ab52..99db5245 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -5,6 +5,15 @@ use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; class Handler extends ExceptionHandler { + /** + * A list of the exception types that should not be reported. + * + * @var array + */ + protected $dontReport = [ + 'Symfony\Component\HttpKernel\Exception\HttpException' + ]; + /** * Report or log an exception. * @@ -27,7 +36,14 @@ class Handler extends ExceptionHandler { */ public function render($request, Exception $e) { - return parent::render($request, $e); + if ($this->isHttpException($e)) + { + return $this->renderHttpException($e); + } + else + { + return parent::render($request, $e); + } } } diff --git a/resources/views/framework/maintenance.php b/resources/views/errors/503.blade.php similarity index 100% rename from resources/views/framework/maintenance.php rename to resources/views/errors/503.blade.php