Property | Type | Description | |
---|---|---|---|
$countries | string | Path to the directory containing countries data. | |
$table | string | The table for the countries in the database, is "countries" by default. |
Method | Description | |
---|---|---|
__construct ( ) : void | Constructor. | |
getList ( $sort = null ) : array | Returns a list of countries | |
getListForSelect ( $display = 'name' ) : array | Returns a list of countries suitable to use with a select element in Laravelcollective\html Will show the value and sort by the column specified in the display attribute | |
getOne ( string $id ) : array | Returns one country |
Method | Description | |
---|---|---|
getCountries ( ) : array | Get the countries from the JSON file, if it hasn't already been loaded. |
protected getCountries ( ) : array | ||
return | array |
public getListForSelect ( $display = 'name' ) : array | ||
return | array |
protected string $countries | ||
return | string |
protected string $table | ||
return | string |