I think this content is useful.
How to upload files in Ravel directory into public folder?
I just translated the steps in the answers to the links above, but how about following them?
'public_uploads'=>[
'driver' = > 'local',
'root' = > public_path(),
],
$request->file('img')->storeAs('images', 'image.png', 'public_uploads');
*If the image was sent as img
and you want to save it in public/images
under the name image.png
© 2024 OneMinuteCode. All rights reserved.