diff --git a/CHANGELOG.md b/CHANGELOG.md index f592bad..3afb4a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `ipinfolaravel` will be documented in this file. +## v2.3.0 + +- Added support for Laravel 9 with latest IPinfo PHP package. + ## v2.2.0 - Added the `no_except` config variable which allows suppressing exceptions diff --git a/composer.json b/composer.json index fc81669..136aa08 100644 --- a/composer.json +++ b/composer.json @@ -17,13 +17,13 @@ "homepage": "https://github.com/ipinfo/ipinfolaravel", "keywords": ["Laravel", "ipinfolaravel"], "require": { - "illuminate/support": ">=5, <9", - "ipinfo/ipinfo": "^2.1.1" + "illuminate/support": ">=5, <10", + "ipinfo/ipinfo": "^2.3.1" }, "require-dev": { "phpunit/phpunit": ">=8 <10", "mockery/mockery": "^1.4.2", - "orchestra/testbench": "^6.4.0", + "orchestra/testbench": ">=6.4.0", "sempro/phpunit-pretty-print": "^1.3.0", "squizlabs/php_codesniffer": "^3.5.8" }, diff --git a/src/ipinfolaravel.php b/src/ipinfolaravel.php index cef80f1..64d38b6 100644 --- a/src/ipinfolaravel.php +++ b/src/ipinfolaravel.php @@ -57,7 +57,7 @@ public function handle($request, Closure $next) } } - $request->request->set('ipinfo', $details); + $request->merge(['ipinfo' => $details]); return $next($request); }