use config helper instead of env in application code

This commit is contained in:
Ethan Brace
2020-04-26 06:07:27 -04:00
parent 16092f657c
commit 6a11f130c2
18 changed files with 29 additions and 23 deletions

View File

@ -23,11 +23,11 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule)
{
// Not installed yet
if (!env('APP_INSTALLED')) {
if (!config('app.installed')) {
return;
}
$schedule_time = env('APP_SCHEDULE_TIME', '09:00');
$schedule_time = config('app.schedule_time');
$schedule->command('reminder:invoice')->dailyAt($schedule_time);
$schedule->command('reminder:bill')->dailyAt($schedule_time);