Files
timebank-cc-public/app/Jobs/TestDelayJob.php
Ronald Huynen 2547717edb Initial commit
2026-03-23 21:37:59 +01:00

40 lines
754 B
PHP

<?php
namespace App\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class TestDelayJob implements ShouldQueue
{
use Dispatchable;
use InteractsWithQueue;
use Queueable;
use SerializesModels;
public $delay;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct($delayInSeconds)
{
$this->delay = now()->addSeconds($delayInSeconds);
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
\Log::info('Test delay job executed at ' . now());
}
}