title: Laravel upload image in the Public Folder not in Storage Folder
body: <p>I want the uploaded file to be located in the <code>public/uploads</code> folder directly like <code>public/uploads/my_file.jpeg</code>. Why is it that my code uploads it to <code>public/uploads/file_name/file.jpeg</code>?</p>
  <p>here is the <code>filesystems.php</code>.</p>
  <pre><code>    'public_uploads' =&gt; [
          'driver' =&gt; 'local',
          'root'   =&gt; public_path() . '/uploads',
      ],
  </code></pre>
  <p>and here is the controller.</p>
  <pre><code>function upload_template(Request $request)
  {
  
  
      $filee = $request-&gt;file('file_upload');
      $file_ext = $filee-&gt;extension();
  
      $file_name = $model-&gt;id . &quot;.&quot; . $file_ext;
  
      Storage::disk('public_uploads')-&gt;put($file_name, $filee);
  
  }
  </code></pre>