28 lines
425 B
PHP
28 lines
425 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\Player;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class GetPlayerJson extends Event
|
|
{
|
|
use SerializesModels;
|
|
|
|
public $player;
|
|
|
|
public $api_type;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(Player $player, $api_type)
|
|
{
|
|
$this->player = $player;
|
|
$this->api_type = $api_type;
|
|
}
|
|
|
|
}
|