phpvms/app/Events/UserAccepted.php

29 lines
505 B
PHP
Raw Normal View History

2017-12-03 00:55:17 +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-03 00:55:17 +08:00
/**
* Class UserAccepted
* @package App\Events
*/
2017-12-03 00:55:17 +08:00
class UserAccepted
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $user;
/**
* UserAccepted constructor.
* @param User $user
*/
2017-12-03 00:55:17 +08:00
public function __construct(User $user)
{
$this->user = $user;
}
}