public function getLeagues(array $filter = ['areas' => ''])
	{
		$leagues = $this->run("v2/competitions"."?".http_build_query($filter) );
		return collect($leagues->competitions);
	}
public function getLeagues(array $filter = ['areas' => ''])
	{
		$leagues = $this->run("v2/competitions"."?".http_build_query($filter) );
		return collect($leagues->competitions);
	}
public function getLeagues ( array $ filter = [ 'areas' => '' ] ) { $ leagues = $ this -> run ( "v2/competitions" . "?" . http_build_query ( $ filter ) ) ; return collect ( $ leagues -> competitions ) ; }
List all available competitions.

@param array $filter
@return Collection
List all available competitions .