Google News
logo
Laravel - Interview Questions
How can we get the user's IP address in Laravel?
We can get the user's IP address using :
public function getUserIp(Request $request){  
// Gettingip address of remote user  
return $user_ip_address=$request->ip();  
Advertisement