21 lines
382 B
PHP
21 lines
382 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Events;
|
||
|
|
||
|
use App\Models\User;
|
||
|
use Illuminate\Queue\SerializesModels;
|
||
|
use Illuminate\Foundation\Events\Dispatchable;
|
||
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
||
|
|
||
|
class UserStateChanged
|
||
|
{
|
||
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||
|
|
||
|
public $user;
|
||
|
|
||
|
public function __construct(User $user)
|
||
|
{
|
||
|
$this->user = $user;
|
||
|
}
|
||
|
}
|