update test api

This commit is contained in:
pbao9
2026-05-18 11:47:18 +07:00
parent 551c90d60b
commit 4972a8a9ee
3 changed files with 37 additions and 3 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Jobs;
use App\Models\ActivityLog;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class LogActivityJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public int $tries = 3;
public int $backoff = 5;
public function __construct(private readonly array $payload) {}
public function handle(): void
{
ActivityLog::create($this->payload);
}
}