title: Laravel store user ip
body: <p><strong>How can I store user ip in Laravel 5+</strong></p>
  
  <p>I want store user <code>ip</code> when register:</p>
  
  <pre><code>use Illuminate\Http\Request;
  
  public function register(Request $request)
      {...
  
  $input = $request-&gt;all();
  $input['ip'] = $request-&gt;ip();
  ...
  }
  </code></pre>
  
  <p>But this give me error:</p>
  
  <pre><code>message: "Non-static method Illuminate\Http\Request::ip() should not be called statically"
  </code></pre>
  
  <p>I googled but nothing found except changing <code>Request</code>, I tried <code>use Request</code> or etc.. but none of those solved my issue.</p>