Мне нужно получить константы в файле .env
в Exception/Handler.php
,
У меня есть изменения Handle.php
public function render($request, Exception $exception)
{
if (env('APP_DEBUG')) {
return parent::render($request, $exception);
} else {
return response(view('error_custom')->render(),200);
}
}
и env ('APP_DEBUG') возвращает null , есть идеи?