added env helpers

This commit is contained in:
Denis Duliçi
2022-06-13 10:01:46 +03:00
parent e34187ffe0
commit e9beb11a5f
3 changed files with 66 additions and 16 deletions

View File

@ -21,7 +21,7 @@ trait DateTime
$default = 'd M Y';
// Make sure it's installed
if (!config('app.installed') && (config('app.env') !== 'testing')) {
if (! config('app.installed') && ! env_is_testing()) {
return $default;
}