-
Notifications
You must be signed in to change notification settings - Fork 596
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
use method non-object #9
Comments
How did you do that? |
I was composed it to my laravel project and migrated db already, then I try to use some method like but I get an error "non-object" |
You have to understand that if you are in a local network and your IP address is in ranges like 192.168., 10. or 172.*, it may not get your geoip, so you have to check it by: if ($visitor->geoIp) var_dump( $visitor->geoIp->city); |
OK, |
You're welcome. |
I try to show my current city, but I got an error with "Trying to get property of non-object".
any answer?
Thanks!
The text was updated successfully, but these errors were encountered: