phpvms/app/Events/UserStateChanged.php
2018-02-20 22:33:09 -06:00

26 lines
523 B
PHP

<?php
namespace App\Events;
use App\Models\User;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
/**
* Event triggered when a user's state changes
* @package App\Events
*/
class UserStateChanged
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $old_state, $user;
public function __construct(User $user, $old_state)
{
$this->old_state = $old_state;
$this->user = $user;
}
}