mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 23:01:29 +00:00
32 lines
563 B
PHP
32 lines
563 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class UserAccessedApi
|
|
{
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
/**
|
|
* @var User
|
|
*/
|
|
public $user;
|
|
|
|
public ?string $ip;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*/
|
|
public function __construct(mixed $user, ?string $ip = null)
|
|
{
|
|
$this->user = $user;
|
|
$this->ip = $ip;
|
|
}
|
|
}
|