Skip to content

Commit 73bf0a0

Browse files
committed
Fix #2 - error when web_service is set
1 parent 82e6056 commit 73bf0a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Torann/GeoIP/GeoIP.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php namespace Torann\GeoIP;
22

33
use GeoIp2\Database\Reader;
4+
use GeoIp2\WebService\Client;
5+
46
use Illuminate\Config\Repository;
57
use Illuminate\Session\Store as SessionStore;
68

@@ -88,7 +90,8 @@ public function __construct(Repository $config, SessionStore $session)
8890
*
8991
* @return void
9092
*/
91-
function saveLocation() {
93+
function saveLocation()
94+
{
9295
$this->session->set('geoip-location', $this->location);
9396
}
9497

0 commit comments

Comments
 (0)