InfluxOW/laravel_ddd_ecommerce

View on GitHub
app/Application/Console/Kernel.php

Summary

Maintainability
A
0 mins
Test Coverage
D
60%
<?php

namespace App\Application\Console;

use App\Domains\Common\Console\Commands\RefreshApplicationCommand;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

final class Kernel extends ConsoleKernel
{
    /**
     * Define the application's command schedule.
     */
    protected function schedule(Schedule $schedule): void
    {
        $schedule->command(RefreshApplicationCommand::class)->cron('0 0 * * *')->runInBackground()->environments(['staging']);
    }
}