title: Image not stored on the server public folder
body: <p>I build a form that contain image upload. It shows no eror, but the image is not stored on the server. Only the path that I create stored on the database.
  Here is my blade:</p>
  
  <pre><code>&lt;div class="form-group"&gt;
    &lt;label for="exampleFormControlFile1"&gt;Photo&lt;/label&gt;
    &lt;input name="photo" type="file" class="form-control-file" id="exampleFormControlFile1"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And this is the method I'm using to store the image:</p>
  
  <pre><code>$file = $request-&gt;file('photo');
      $nama = $request-&gt;name;
  
                    $judul_image = $nama;
                    $extension      = $file-&gt;getClientOriginalExtension();
                    $namax          = $file-&gt;getClientOriginalName();
                    $directory      = public_path().'/images/speakers/';
                    $filename       = $judul_image.'-'.$namax;
                    $path           = $file-&gt;getPathName();
                    $upload_success = $file-&gt;move($directory, $filename);
  
                    $imgurl = 'http://indoebtkeconex.com/images/speakers/'.$filename;
      $speakers = new Speakers;
      $speakers-&gt;name = $nama;
      $speakers-&gt;position = $request-&gt;position;
      $speakers-&gt;photo = $imgurl;
      $speakers-&gt;year = 2019;
      $speakers-&gt;save();
  </code></pre>
  
  <p>the $imgurl saved properly on the database, but the image not stored on the server. Is there anything missing here?</p>