Files
InvoiceShelf/routes/console.php
2026-08-02 23:01:22 +02:00

25 lines
560 B
PHP

<?php
use App\Support\Setup\InstallUtils;
use Illuminate\Support\Facades\Schedule;
// Only run in demo environment
if (config('app.env') === 'demo') {
Schedule::command('reset:app --force')
->daily()
->runInBackground()
->withoutOverlapping();
}
if (InstallUtils::isDbCreated()) {
Schedule::command('check:invoices:status')
->daily();
Schedule::command('check:estimates:status')
->daily();
Schedule::command('generate:recurring-invoices')
->everyMinute()
->withoutOverlapping(60);
}