Preview: Location.php
Size: 943 B
/home/getspomw/royalsquad.us/vendor/stevebauman/location/src/Facades/Location.php
<?php
namespace Stevebauman\Location\Facades;
use Illuminate\Support\Facades\Facade;
use Stevebauman\Location\LocationFake;
use Stevebauman\Location\LocationManager;
/**
* @method static \Stevebauman\Location\Drivers\Driver[] drivers()
* @method static \Stevebauman\Location\Position|bool get(string $ip = null)
* @method static void resolveRequestUsing(callable $callback)
* @method static void setDriver(\Stevebauman\Location\Drivers\Driver $driver)
*/
class Location extends Facade
{
/**
* Swap the instance with a fake.
*/
public static function fake(array $responses = []): LocationFake
{
$instance = new LocationFake(static::getFacadeRoot(), $responses);
static::swap($instance);
return $instance;
}
/**
* Get the registered name of the component.
*/
protected static function getFacadeAccessor(): string
{
return LocationManager::class;
}
}
Directory Contents
Dirs: 0 × Files: 1