Torann / laravel-geoip

Determine the geographical location of website visitors based on their IP addresses.
http://lyften.com/projects/laravel-geoip
BSD 2-Clause "Simplified" License
2.11k stars 372 forks source link

Class 'Torann\GeoIP\Facades\GeoIP' not found #157

Open rahulradadiya65 opened 5 years ago

rahulradadiya65 commented 5 years ago

please find below Controller code <?php

namespace App\Http\Controllers;

use App\product; use Illuminate\Http\Request;

use Torann\GeoIP\Facades\GeoIP;

class HomeController extends Controller { /**

djunehor commented 5 years ago

You probably forgot to add 'GeoIP' => \Torann\GeoIP\Facades\GeoIP::class to your aliases in config/app.php

yoshrubin commented 5 years ago

I have noticed that sometimes the:

"require": {
    "torann/geoip": "^1.0"
},

in composer.json is removed when running composer update and then I get this error the solution for me is to rerun composer require torann/geoip hope this helps you.