Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
06865f7b
Commit
06865f7b
authored
Oct 31, 2016
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a 500 error page
parent
ca075b6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
core.php
Modules/Translation/Resources/lang/core/en/core.php
+3
-0
500.blade.php
Themes/AdminLTE/views/errors/500.blade.php
+24
-0
Handler.php
app/Exceptions/Handler.php
+2
-0
No files found.
Modules/Translation/Resources/lang/core/en/core.php
View file @
06865f7b
...
...
@@ -65,4 +65,7 @@ return [
'error 404'
=>
'404'
,
'error 404 title'
=>
'Oops! This page was not found.'
,
'error 404 description'
=>
'The page you are looking for was not found.'
,
'error 500'
=>
'500'
,
'error 500 title'
=>
'Oops! Something went wrong'
,
'error 500 description'
=>
'An administrator was notified.'
,
];
Themes/AdminLTE/views/errors/500.blade.php
0 → 100644
View file @
06865f7b
@
extends
(
'layouts.master'
)
@
section
(
'content-header'
)
<
h1
>
{{
trans
(
'core::core.error 500'
)
}}
</
h1
>
<
ol
class
="
breadcrumb
">
<li><a href="
{{
route
(
'dashboard.index'
)
}}
"><i class="
fa
fa
-
dashboard
"></i> {{ trans('core::core::core.breadcrumb.home') }}</a></li>
<li class="
current
">{{ trans('core::core.error 500') }}</li>
</ol>
@stop
@section('content')
<div class="
error
-
page
">
<h2 class="
headline
text
-
red
" style="
line
-
height
:
0.6
;
margin
-
top
:
0
;
"> 500</h2>
<div class="
error
-
content
">
<h3><i class="
fa
fa
-
warning
text
-
red
"></i> {{ trans('core::core.error 500 title') }}</h3>
<p>{!! trans('core::core.error 500 description') !!}</p>
</div>
<!-- /.error-content -->
</div>
@stop
app/Exceptions/Handler.php
View file @
06865f7b
...
...
@@ -62,5 +62,7 @@ class Handler extends ExceptionHandler
if
(
$e
instanceof
NotFoundHttpException
)
{
return
response
()
->
view
(
'errors.404'
,
[],
404
);
}
return
response
()
->
view
(
'errors.500'
,
[],
500
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment