Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the Readme #47

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,24 @@ You'll need an IPinfo API access token, which you can get by singing up for a fr

The free plan is limited to 50,000 requests per month, and doesn't include some of the data fields such as IP type and company data. To enable all the data fields and additional request volumes see [https://ipinfo.io/pricing](https://ipinfo.io/pricing).


#### Installation

```
composer require ipinfo/ipinfolaravel
```

> **Note**
>
> If you are getting errors installing the package into a freash Laravel 9 project, you can change the psr-simple cache version in composer.lock or just remove the lock file and install our package and composer will automatically create a new lock file with required versions.
>
>We are using sabre/cache in our php library and sabre/cache uses psr/simple-cache:1
>The laravel framework is using psr/simple-cache:3 by default but it supports 1.0 || 2.0 || 3.0 as well. So when you create a fresh laravel project it locks the psr/simple-cache version to 3 in composer.lock file.





Open your application's `\app\Http\Kernel.php` file and add the following to the `Kernel::middleware` property:

```php
Expand Down