# Leagues

# GET All Leagues

use SportmonksFootballApi;

SportmonksFootballApi::league()->all();

# Get League by ID

use SportmonksFootballApi;

SportmonksFootballApi::league()->byId($id);

# GET League Live

use SportmonksFootballApi;

SportmonksFootballApi::league()->byLive();

# GET League by Fixture Date

use SportmonksFootballApi;

SportmonksFootballApi::league()->byFixtureDate('2022-12-28');

# GET League by Country ID

use SportmonksFootballApi;

SportmonksFootballApi::league()->byCountryId($countryId);

# GET League Search by Name

use SportmonksFootballApi;

SportmonksFootballApi::league()->searchByName($name);