Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ip2location authored Aug 27, 2020
1 parent 0ee25cb commit 56b0da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TestController extends Controller
public function lookup(){

//Try query the geolocation information of 8.8.8.8 IP address
$records = IP2LocationLaravel::get('8.8.8.8', 'bin');
$records = IP2LocationLaravel::get('8.8.8.8', \Ip2location\IP2LocationLaravel\IP2LocationLaravel::QUERY_BIN);

echo 'IP Number : ' . $records['ipNumber'] . "<br>";
echo 'IP Version : ' . $records['ipVersion'] . "<br>";
Expand Down Expand Up @@ -114,7 +114,7 @@ class TestController extends Controller
public function lookup(){

//Try query the geolocation information of 8.8.8.8 IP address
$records = IP2LocationLaravel::get('8.8.8.8', 'ws');
$records = IP2LocationLaravel::get('8.8.8.8', \Ip2location\IP2LocationLaravel\IP2LocationLaravel::QUERY_WS);

echo '<pre>';
print_r($records);
Expand Down

0 comments on commit 56b0da6

Please sign in to comment.