mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
29 lines
528 B
PHP
29 lines
528 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class UserAccessedApi
|
|
{
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
/**
|
|
* @var \App\Models\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;
|
|
}
|
|
}
|