mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 16:23:18 +01:00
Use config() helper in place of env() to prevent null value when config:cache is used
This commit is contained in:
parent
f45359e920
commit
358ce983b8
@ -135,7 +135,7 @@ private function customApiResponse($exception, $debug)
|
||||
default:
|
||||
$response['message'] = ($statusCode >= 500) ? 'Whoops, looks like something went wrong' : $exception->getMessage();
|
||||
|
||||
if (env('APP_DEBUG')) {
|
||||
if (config('app.debug')) {
|
||||
$response['originalMessage'] = $exception->getMessage();
|
||||
$response['debug'] = $debug;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<title>{{ env("APP_NAME") }}</title>
|
||||
<title>{{ config('app.name') }}</title>
|
||||
|
||||
<link rel="shortcut icon" href="{{ asset('favicon.ico') }}" />
|
||||
<link rel="icon" type="image/png" href="{{ asset('favicon.png') }}" />
|
||||
|
Loading…
Reference in New Issue
Block a user