Add different PIREP and User events

This commit is contained in:
Nabeel Shahzad
2017-12-02 10:55:17 -06:00
parent d4b66cafae
commit ddcb3c632f
10 changed files with 150 additions and 37 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Events;
use App\Models\User;
use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
class UserStateChanged
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $user;
public function __construct(User $user)
{
$this->user = $user;
}
}