Use config() helper in place of env() to prevent null value when config:cache is used

This commit is contained in:
Bubka 2020-03-24 13:24:33 +01:00
parent f45359e920
commit 358ce983b8
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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') }}" />