24 lines
427 B
PHP
24 lines
427 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Events;
|
||
|
|
||
|
use App\Models\User;
|
||
|
use Illuminate\Queue\SerializesModels;
|
||
|
use Illuminate\Foundation\Events\Dispatchable;
|
||
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
||
|
|
||
|
class TestEvent
|
||
|
{
|
||
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||
|
|
||
|
public $user;
|
||
|
|
||
|
/**
|
||
|
* Create a new event instance.
|
||
|
*/
|
||
|
public function __construct(User $user)
|
||
|
{
|
||
|
$this->user = $user;
|
||
|
}
|
||
|
}
|