-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
810df62
commit ce09bfc
Showing
4 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace ProVision\Administration\Exceptions; | ||
|
||
use Exception; | ||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | ||
|
||
class Handler extends \App\Exceptions\Handler | ||
{ | ||
|
||
/** | ||
* 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 ($exception instanceof NotFoundHttpException) { | ||
return response()->view('administration::errors.404', compact('exception'), 404); | ||
} | ||
|
||
return parent::render($request, $exception); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ | |
</p> | ||
@endif | ||
|
||
<a href="{{url('/')}}"> << Go back</a> | ||
|
||
</div> | ||
</div> | ||
</section> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@extends('administration::layouts.error') | ||
|
||
@section('content') | ||
<section class="content"> | ||
<div class="error-page"> | ||
<h2 class="headline text-red"> 500</h2> | ||
|
||
<div class="error-content"> | ||
<br/> | ||
<h3><i class="fa fa-warning text-red"></i> Internal Server Error.</h3> | ||
|
||
@if(!empty($exception->getMessage())) | ||
<p> | ||
{{$exception->getMessage()}} | ||
</p> | ||
@endif | ||
|
||
</div> | ||
</div> | ||
</section> | ||
@stop |