I am trying to get the client\'s IP address in Laravel.
It is easy to get a client\'s IP in PHP by using $_SERVER[\"REMOTE_ADDR\"]. It is working fine
$_SERVER[\"REMOTE_ADDR\"]
For Laravel 5 you can use the Request object. Just call its ip() method, something like:
ip()
$request->ip();