look in skin folder for error files
This commit is contained in:
parent
7fb13a95f2
commit
2c41144c61
@ -67,4 +67,23 @@ class Handler extends ExceptionHandler
|
|||||||
|
|
||||||
return redirect()->guest('login');
|
return redirect()->guest('login');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render the given HttpException.
|
||||||
|
*/
|
||||||
|
protected function renderHttpException(\Symfony\Component\HttpKernel\Exception\HttpException $e)
|
||||||
|
{
|
||||||
|
$status = $e->getStatusCode();
|
||||||
|
view()->replaceNamespace('errors', [
|
||||||
|
resource_path('views/layouts/' . config('phpvms.skin') . '/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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user