uros.purtic@gmail.com's avatar

file not found at path larval storage::move

I'm storing files from dropzone to storage folder. Symlink has been created and files show nicely on front. After some logic and steps I wish to move them to a different directory. Storage::move trows error : "No such file or directory". I event run a check with php method file_exists that returns true.

This is mu system file : 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), ],

Any ides ?

0 likes
3 replies
kmjadeja's avatar

Hey @uros.purtic@gmail.com

You can try this

Storage::disk('local')->move('old/file-name', 'new/file-name');

Still this will not solve your query then can you add screenshot of your file structure where the old file was store.

Reference : Click here for documentation

1 like
uros.purtic@gmail.com's avatar

I trid that and it fixed my issue. Had to ajust paths where I used local_storage instead storage::disk..

Please or to participate in this conversation.