관리-도구
편집 파일: 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; } }