feat: quene
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user