title: Laravel 5.8. How to upload file?
body: <p>I have simple Form:</p>
  
  <pre><code>&lt;form method="post" action="{{ route('company.store') }}"&gt;
      Logo: &lt;br&gt;
      &lt;input name="logo" type="file"&gt;&lt;br&gt;
  </code></pre>
  
  <p>In my controller i try to save image with</p>
  
  <pre><code>$file = $request-&gt;file('logo')-&gt;store('avatars');
  </code></pre>
  
  <p>but i have error</p>
  
  <pre><code> "Call to a member function store() on null"
  </code></pre>
  
  <p><code>dd($request-&gt;file('logo');</code> shows <code>'null'</code></p>
  
  <p>How to reach file to save it?</p>