phpvms/app/Events/TestEvent.php

29 lines
502 B
PHP
Raw Normal View History

<?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;
/**
* Class TestEvent
* @package App\Events
*/
class TestEvent
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $user;
/**
* Create a new event instance.
* @param User $user
*/
public function __construct(User $user)
{
$this->user = $user;
}
}