All notable changes to ipinfolaravel
will be documented in this file.
- Added support for a custom IP selector function.
- Added support for Laravel 9 with latest IPinfo PHP package.
- Added the
no_except
config variable which allows suppressing exceptions that occur in the IPinfo middleware; the$request->ipinfo
object will benull
in this case.
- The IPinfo PHP SDK will no longer be initialized multiple times - one will be initialized at application startup and used throughout.
- Use v2.1.1 of PHP SDK (https://github.com/ipinfo/php/releases/tag/v2.1.1).
- Update to the latest IPinfo PHP package, which supports PHP 8 and deprecates PHP 7.2 support.
- Supports Laravel 5.x to 8.x.
- The
ipinfo
object on the request object is not accessible via input, e.g.$request->input('ipinfo')->ip
; you must use$request->ipinfo->ip
, etc. - The IP for which data is retrieved is now correctly the client IP, and not the server IP.
- Everything