Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

Technically IP's are long addresses, not 4 pairs of digits, so you could convert it to it's native form: http://php.net/manual/en/function.ip2long.php

And back again: http://php.net/manual/en/function.long2ip.php

I'm not sure how long they are though http://stackoverflow.com/questions/1076714/max-length-for-client-ip-address

Last updated 2 years ago.
0

I read about this, but as I know it is not working with IPv6 well. So I find solution here: http://stackoverflow.com/questions/17795517/laravel-4-saving-ip-address-to-model Thanks you!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

DonPrus donprus Joined 19 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.