Свойство | Type | Description | |
---|---|---|---|
$driver | The current driver. | ||
$key | string | The session key. |
Méthode | Description | |
---|---|---|
__construct ( ) | Constructor. | |
get ( string $ip = '' ) : |
Retrieve the users location. | |
setDefaultDriver ( ) | Sets the default driver from the configuration. | |
setDriver ( |
Creates the selected driver instance and sets the driver property. | |
setSessionKey ( string $key ) : |
Sets the location session key. |
Méthode | Description | |
---|---|---|
getClientIP ( ) : string | Returns the client IP address. Will return the set config IP if localhost testing is set to true. | |
getDefaultDriver ( ) : Illuminate\Support\Facades\Config | Returns the selected driver | |
getDriver ( string $driver ) : |
Returns the specified driver. | |
getDriverFallbacks ( ) : array | Retrieves the config option for select driver fallbacks. | |
getLocalHostTestingIp ( ) : string | Retrieves the config option for the localhost testing IP. | |
localHostTesting ( ) : boolean | Retrieves the config option for localhost testing. |
protected getClientIP ( ) : string | ||
Résultat | string |
protected getDefaultDriver ( ) : Illuminate\Support\Facades\Config | ||
Résultat | Illuminate\Support\Facades\Config |
protected getDriverFallbacks ( ) : array | ||
Résultat | array |
protected getLocalHostTestingIp ( ) : string | ||
Résultat | string |
protected localHostTesting ( ) : boolean | ||
Résultat | boolean |
public setDefaultDriver ( ) |
public setDriver ( |
||
$driver |
public setSessionKey ( string $key ) : |
||
$key | string | |
Résultat |
protected Driver,Stevebauman\Location\Drivers $driver | ||
Résultat |