Compare commits

...

2 Commits

Author SHA1 Message Date
0327b95568 change queue time and set CloseSessionsJob 2026-02-19 15:22:39 +01:00
9d61186c72 checks cron 2026-02-19 15:16:33 +01:00
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Jobs;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;
use Illuminate\Support\Facades\Log;
final class LogAppVersionJob implements ShouldQueue
{
use Queueable;
/**
* Log the application version.
*/
public function handle(): void
{
$version = config('app.version', 'unknown');
Log::info("Application version: {$version}");
}
}

View File

@@ -15,6 +15,8 @@
'name' => env('APP_NAME', 'Laravel'),
'version' => '1.0.0',
/*
|--------------------------------------------------------------------------
| Application Environment

View File

@@ -1,8 +1,15 @@
<?php
use App\Jobs\CloseSessionsJob;
use App\Jobs\LogAppVersionJob;
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::job(new LogAppVersionJob)->hourly();
Schedule::job(new CloseSessionsJob)->hourly();