Closed hitechqb closed 5 years ago
use the following command link: php artisan config:clear php artisan config:cache
I was updating the wrong config file. Make sure to update the config file in the bootstrap/config folder, not in the vendor/torann/geoip/config folder.
I have the same error for Laravel 5.5 I have config on app.config for Provider and Aliases prov -> Torann\GeoIP\GeoIPServiceProvider::class, alias-> 'GeoIP' => Torann\GeoIP\Facades\GeoIP::class,
Exception: The GeoIP service is not valid. (In GeoIP.php line 205)
Anybody have resolved this error?
I had the same problem and I fixed it up.
just update config/geoip.php
file
you can check here https://github.com/Torann/laravel-geoip/blob/master/config/geoip.php
I solve this after publish config
php artisan vendor:publish --provider="Torann\GeoIP\GeoIPServiceProvider" --tag=config
@liyu001989 if someone already publishes config file with the older version then it won't work
and geoip.php
file is updated have to update geoip.php
file
@liyu001989 Same problem, awesome fix.
I don't really agree on this being a "fix", shouldn't Laravel packages not require their config to be published? Wouldn't that make it a bit hard to have packages use packages?
submitted a PR that fixes this #119
Hi all, I am using laravel 5.5. I have config on app.config for Provider and Aliases. When i call: $location = GeoIP::getLocation(); --> Bug: THe GeoIP service is not valid. (In GeoIP.php line 205)
Help me!