프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$driver | The current driver. | ||
$key | string | The session key. |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | string |
protected getDefaultDriver ( ) : Illuminate\Support\Facades\Config | ||
리턴 | Illuminate\Support\Facades\Config |
protected getDriverFallbacks ( ) : array | ||
리턴 | array |
protected getLocalHostTestingIp ( ) : string | ||
리턴 | string |
protected localHostTesting ( ) : boolean | ||
리턴 | boolean |
public setDefaultDriver ( ) |
public setDriver ( |
||
$driver |
public setSessionKey ( string $key ) : |
||
$key | string | |
리턴 |
protected Driver,Stevebauman\Location\Drivers $driver | ||
리턴 |