change maintenance mode page

This commit is contained in:
Omair Saleh
2019-04-24 00:00:42 +08:00
parent 2e266b6e5d
commit 2d41eee948
4 changed files with 41 additions and 3 deletions
+8 -1
View File
@@ -29,8 +29,9 @@ class Handler extends ExceptionHandler
/**
* Report or log an exception.
*
* @param \Exception $exception
* @param \Exception $exception
* @return void
* @throws Exception
*/
public function report(Exception $exception)
{
@@ -46,6 +47,12 @@ class Handler extends ExceptionHandler
*/
public function render($request, Exception $exception)
{
if ($exception instanceof \Illuminate\Foundation\Http\Exceptions\MaintenanceModeException) {
return response()
->view('pages.errors.maintenance');
}
return parent::render($request, $exception);
}
}