Use laravel task scheduler
This commit is contained in:
+5
-3
@@ -2,6 +2,7 @@
|
||||
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Schedule;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -14,6 +15,7 @@ use Illuminate\Support\Facades\Artisan;
|
||||
|
|
||||
*/
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
Schedule::command('app:auto-stats')->hourly();
|
||||
Schedule::command('app:reset-user-downloads')->daily();
|
||||
Schedule::command('app:generate-sitemap')->daily();
|
||||
Schedule::command('app:sync-subscription-keys')->daily();
|
||||
|
||||
Reference in New Issue
Block a user