Open rahulradadiya65 opened 5 years ago
You probably forgot to add 'GeoIP' => \Torann\GeoIP\Facades\GeoIP::class
to your aliases in config/app.php
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.
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 { /**
@return void */
/**
@return \Illuminate\Contracts\Support\Renderable */ public function index(Request $request) { $id = $request -> getClientIp(true);
} }