for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gameap\Http\Controllers\API;
use Gameap\Http\Controllers\AuthController;
use Gameap\Repositories\DedicatedServersRepository;
use Gameap\Models\DedicatedServer;
class DedicatedServersController extends AuthController
{
/**
* The DedicatedServersRepository instance.
*
* @var \Gameap\Repositories\DedicatedServersRepository
*/
public $repository;
* DedicatedServersController constructor.
* @param DedicatedServersRepository $repository
public function __construct(DedicatedServersRepository $repository)
parent::__construct();
$this->repository = $repository;
}
* @param int $id
* @return array
public function getIpList(int $id)
return $this->repository->getIpList($id);
public function getBusyPorts(int $id)
return $this->repository->getBusyPorts($id);
return $this->repository->getBusyPorts($id)
Illuminate\Support\Collection
array