Laravel 5.8 - How to move file from storage directory to public directory?
问题 I would like to move one of my files from the storage file directory in Laravel to the public file directory in laravel, without changing my file system configuration. Is this possible? 回答1: Yes, you can do it with Storage::move and public_path() helper. Storage::move( 'old/file.jpg', public_path('new/file.jpg') ); Note that old/file.jpg is relative to your-project/storage/app , so the file that you want to move would be in your-project/storage/app/old/file.jpg UPDATE Still, another approach