lundi 9 mars 2020

Laravel location tracker

In laravel 5.8 i want to get user country. I am using laravel package for get user location(https://github.com/stevebauman/location). But in localhost it's getting us location and ip. I also tried in my live server. But same result showing everywhere

    public function location(){
    $position_id = Location::get();
    $position = Location::get($position_id->ip);

    return $position;
}

How can i get different user location and ip



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire