mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
36 lines
607 B
PHP
36 lines
607 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\PlayerModel;
|
|
use App\Events\Event;
|
|
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 [];
|
|
}
|
|
}
|