title: Upload image in Laravel
body: <p>I try these code in controller: </p>
  
  <pre><code>public function uploadimage(Request $request)
      {
          if ($request-&gt;hasFile('image')) {
              $destinationPath = 'uploads';
              $files = $request-&gt;image;
              $file_name = $files-&gt;getClientOriginalName();
              $files-&gt;move($destinationPath, $file_name);
              echo "Complete";
          } else {
              echo "No File";
          }
      }
  </code></pre>
  
  <p>My Html input file:</p>
  
  <pre><code> &lt;input name="image" type="file" id="image"/&gt;
  </code></pre>
  
  <p>but i can't upload. Any idea?</p>