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\"]
In Laravel 5
public function index(Request $request) { $request->ip(); }