Reputation: 77
Im using Laravel 5.8. Im trying to use the following package https://packagist.org/packages/s1lentium/iptools
To install it i have run:
composer require s1lentium/iptools
Confirmed the require line is in the composer.json "s1lentium/iptools": "^1.1"
and that the package is in "vendor/s1lentium/iptools/"
How can i reference it in the code (controller or even in a view)?? When I try to use the IP class Laravel cannot find it.
I've researched a lot and but without success. Hope anyone can lead me to the correct step.
Thanks!
Upvotes: 0
Views: 741
Reputation: 2602
Run composer dump-autoload
You must call the IP class with \IPTools\IP
, or use
it:
use IPTools\IP;
Hope it helps.
Upvotes: 2