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
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!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community