40 lines
810 B
PHP
40 lines
810 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Events;
|
||
|
|
|
||
|
|
use App\Models\Server\TouristOrder;
|
||
|
|
use Illuminate\Queue\SerializesModels;
|
||
|
|
use Illuminate\Broadcasting\PrivateChannel;
|
||
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
||
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
||
|
|
|
||
|
|
class OutUserMatch
|
||
|
|
{
|
||
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @var TouristOrder
|
||
|
|
*/
|
||
|
|
public $order;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create a new event instance.
|
||
|
|
*
|
||
|
|
* @param TouristOrder $order
|
||
|
|
*/
|
||
|
|
public function __construct(TouristOrder $order)
|
||
|
|
{
|
||
|
|
$this->order = $order;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Get the channels the event should broadcast on.
|
||
|
|
*
|
||
|
|
* @return \Illuminate\Broadcasting\Channel|array
|
||
|
|
*/
|
||
|
|
public function broadcastOn()
|
||
|
|
{
|
||
|
|
return new PrivateChannel('UserMatch');
|
||
|
|
}
|
||
|
|
}
|