fino a eventi e report prima del tipo di eventi
This commit is contained in:
+9
-5
@@ -1,8 +1,12 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Schedule;
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
Schedule::call(function () {
|
||||
try {
|
||||
$emailController = new \App\Http\Controllers\EmailController();
|
||||
$emailController->syncEmails();
|
||||
} catch (\Exception $e) {
|
||||
\Illuminate\Support\Facades\Log::error('Scheduled email sync failed', ['error' => $e->getMessage()]);
|
||||
}
|
||||
})->name('email:sync')->everyFifteenMinutes()->withoutOverlapping();
|
||||
|
||||
Reference in New Issue
Block a user