title: Why is my image not storing in a specified folder in Laravel 5.6?
body: <p>In my form, I asked for an image to upload. Then I already validated it and it works. But the file is not stored in the uploads folder.</p>
  
  <p>Here's a snippet of my ProductController:</p>
  
  <pre><code>public function store(Request $request)
  {
      // Validate fields
      $this-&gt;validate($request, [
          'product_name' =&gt; 'required',
          'product_price' =&gt; 'required',
          'product_desc' =&gt; 'required',
          'product_img' =&gt; 'image|required'
      ]);
  
      // Upload image
      if($request-&gt;hasFile('image')) {
          app()-&gt;make('path.public/uploads');
          $image = $request-&gt;image;
  
          $image-&gt;move('uploads', $image-&gt;getClientOriginalName());
  
  
      }
  
      /*// Save the data into database
      Product::create([
          'name' =&gt; $request-&gt;product_name,
          'price' =&gt; $request-&gt;product_price,
          'description' =&gt; $request-&gt;product_desc,
          'image' =&gt; $request-&gt;image-&gt;getClientOriginalName()
      ]);
  
  
      // Echo a session message
      $request-&gt;session()-&gt;flash('msg', 'Your product has been added');
  
  
      // Redirect to view page
      return redirect('/products');*/
  
  }
  </code></pre>
  
  <p>I already tried looking at other possible solutions but the other questions were already at storing the image in the database. I also tried checking if <code>uploads</code> was a directory and existed, and it is.</p>
  
  <p>Can anyone please help? Thanks.</p>