Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoIP not working #198

Open
burhanahmed92 opened this issue Jan 26, 2021 · 2 comments
Open

GeoIP not working #198

burhanahmed92 opened this issue Jan 26, 2021 · 2 comments

Comments

@burhanahmed92
Copy link

I am using Laravel 8 and using "torann/geoip": "^3.0.2"

I followed all steps and using maxmind_database for service. i also updated it in geoip.php file. I added my mmdb file inside storage/app folder. After doing all this. I am trying to call GeoIP class in my controller like this:

use Torann\GeoIP\Facades\GeoIP;
public function index()
    {
        dd(GeoIP($ip = '127.0.0.1'));
        $data = array(
            'title'=>'My App',
        );
        return view('home')->with($data);;
    }

But gives me an error

Call to undefined function camel_case()

Kindly guide what am I missing.

@burhanahmed92
Copy link
Author

I also checked the config/app.php it fine as given in document

@muarachmann
Copy link

I don't think this issue relates to this package, maybe you are using Laravels string functions do some stuff, can you check?
with the latest version it uses Str::camel()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants