2017-12-02 23:19:58 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events;
|
|
|
|
|
|
|
|
use App\Models\User;
|
|
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
2018-02-21 12:33:09 +08:00
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
2017-12-02 23:19:58 +08:00
|
|
|
|
2018-03-20 09:50:40 +08:00
|
|
|
/**
|
|
|
|
* Class TestEvent
|
|
|
|
*/
|
2017-12-02 23:19:58 +08:00
|
|
|
class TestEvent
|
|
|
|
{
|
|
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
|
|
|
|
public $user;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
2018-08-27 00:40:04 +08:00
|
|
|
*
|
2018-03-20 09:50:40 +08:00
|
|
|
* @param User $user
|
2017-12-02 23:19:58 +08:00
|
|
|
*/
|
|
|
|
public function __construct(User $user)
|
|
|
|
{
|
|
|
|
$this->user = $user;
|
|
|
|
}
|
|
|
|
}
|