blessing-skin-server/app/Events/PlayerWasAdded.php

35 lines
585 B
PHP
Raw Normal View History

<?php
namespace App\Events;
use App\Models\PlayerModel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class PlayerWasAdded extends Event
{
use SerializesModels;
public $player;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(PlayerModel $player)
{
$this->player = $player;
}
/**
* Get the channels the event should be broadcast on.
*
* @return array
*/
public function broadcastOn()
{
return [];
}
}