I\'m trying to save a user ip address to my database using Laravel 4. I found the following function which returns a string
Request::getClientIp() >
Request::getClientIp()
$table->string('ip_address', 39);
Because the maximum length of an IPv6 address is 39.
IPv4 will be supported as it's length doesn't exceeds 15.