fix 503 page
This commit is contained in:
parent
07ba462073
commit
06b937f8ce
|
|
@ -75,12 +75,5 @@ class ViewServiceProvider extends ServiceProvider
|
|||
}
|
||||
// @codeCoverageIgnoreEnd
|
||||
});
|
||||
|
||||
View::composer('errors.503', function ($view) {
|
||||
$view->with(
|
||||
'show_login_button',
|
||||
!auth()->check() && request()->is('setup/*')
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<p>
|
||||
{{ trans('errors.exception.detail', {msg: exception.message ?: trans('errors.http.msg-503')}) }}
|
||||
</p>
|
||||
{% if show_login_button %}
|
||||
{% if not auth_check() %}
|
||||
<div class="mt-5">
|
||||
<a href="{{ url('/auth/login') }}" class="btn btn-primary">
|
||||
<i class="icon fas fa-sign-in-alt mr-1"></i>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user