test borked
This commit is contained in:
parent
49b528a66b
commit
2418edccfd
29 changed files with 2036 additions and 121 deletions
|
|
@ -1,8 +1,18 @@
|
|||
<?php
|
||||
|
||||
use App\Services\MagicLinkAuthService;
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Schedule;
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
// Scheduled task to clean up expired magic login tokens
|
||||
Schedule::call(function () {
|
||||
$service = app(MagicLinkAuthService::class);
|
||||
$deleted = $service->cleanupExpiredTokens();
|
||||
Log::info("Cleaned up {$deleted} expired magic login tokens");
|
||||
})->daily();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue