Add Docker-based dev/prod setup with zail helper scripts
This commit is contained in:
21
app/Jobs/TestLogJob.php
Normal file
21
app/Jobs/TestLogJob.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
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;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class TestLogJob implements ShouldQueue {
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public function handle(): void {
|
||||
Log::info('TestLogJob executed (async): ' . now());
|
||||
echo 'TestLogJob executed (async): ' . now() . PHP_EOL;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user