diff --git a/src/ipinfolaravel.php b/src/ipinfolaravel.php index 64d38b6..a06b523 100644 --- a/src/ipinfolaravel.php +++ b/src/ipinfolaravel.php @@ -83,6 +83,12 @@ public function configure() $this->settings['cache'] = new DefaultCache($maxsize, $ttl); } + if ($custom_iphandler = config('services.ipinfo.iphandler', null)) { + $this->settings['iphandler'] = $custom_iphandler; + } else { + // TODO: Handle this case, with default options + } + $this->ipinfo = new IPinfoClient($this->access_token, $this->settings); }