title: how to get path laravel with error mk such no such dir or file?
body: <p>I want to know what the error, because i think my path are correct but still giving me error as path
  here is the code</p>
  <pre><code>public function importfile(Request $request){
      $validator = Validator::make($request-&gt;all(), [
          'file' =&gt; 'required||max:5000|mimes:xls, xls, csv'
      ]);
  
      if($validator-&gt;passes()){
          $dateTime = date('Ymd_His');
          $file = $request-&gt;file('file');
          $fileName = $dateTime . '-' . $file-&gt;getClientOriginalName();
          $savePath = public_Path('/excelFile/');
          $file-&gt;move($savePath, $fileName);
          $getFileWithPath = public_Path(&quot;/excelFile/&quot;.$fileName);
          $array = Excel::toCollection(new BreakByMin, $getFileWithPath);
          return redirect()-&gt;back()
              -&gt;with(['success'=&gt;'File uploaded successfully.']);
      }else{
          return redirect()-&gt;back()
              -&gt;with(['errors' =&gt; $validator-&gt;errors()-&gt;all()]);
      }   
  }
  </code></pre>
  <p>when i tried to check where my file are the file are exactly in there but i always got an error mk such dir</p>
  <p><a href="https://i.stack.imgur.com/sauUz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sauUz.png" alt="enter image description here" /></a></p>
  <p>here is the error
  <a href="https://i.stack.imgur.com/vJ5RT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vJ5RT.png" alt="enter image description here" /></a></p>
  <p>i don't understand this error, because i check it clearly and the data is there</p>