feat: quene

This commit is contained in:
hashbro
2026-09-01 05:09:00 +08:00
parent 337bf45c79
commit e23550e820
28 changed files with 969 additions and 234 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Jobs;
use App\Models\PageVisit;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;
class RecordPageHit implements ShouldQueue
{
use Queueable;
/**
* @param array<string, mixed> $attrs
*/
public function __construct(
public array $attrs,
public int $chain,
) {}
public function handle(): void
{
PageVisit::recordLanding($this->attrs, $this->chain);
}
}