title: Laravel api - how to upload file
body: <p>I am building a web service for mobile application using Laravel. I need to let the users to upload images. I am using <code>passport</code> package. In developing environment I created a function <code>store</code> as follows</p>
  
  <pre><code>public function store(Request $request)
  {
      return $request;
  }
  </code></pre>
  
  <p>and using Firefox poster I post contents. These are the parameters</p>
  
  <p><a href="https://i.stack.imgur.com/hpN7I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hpN7I.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/qncge.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qncge.png" alt="enter image description here"></a></p>
  
  <p>The problem is the function <code>store</code> always returns empty array while I expect it to return information about the file. What is wrong here?</p>
  
  <p>thanks</p>