We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ca4374 commit 056e77cCopy full SHA for 056e77c
README.md
@@ -44,7 +44,10 @@ protected $middleware = [
44
45
```php
46
Route::get('/', function () {
47
- $location = "The IP address " . request()->get('abstract-ip-geolocation')['ip_address'];
+ $ip = request()->get('abstract-ip-geolocation')['ip_address']
48
+ // Or
49
+ $ip = session()->get('abstract-ip-geolocation')['ip_address']
50
+ $location = "The IP address " . $ip;
51
return view('index', ['location' => $location]);
52
});
53
```
0 commit comments