Answer the question
In order to leave comments, you need to log in
How to specify folder when uploading files in Laravel?
Good evening. I am trying to upload an image in laravel
path = $request->file('file')->store('uploads','public');
Answer the question
In order to leave comments, you need to log in
It is not recommended to upload directly to public.
You should make a symbolic link from storage to public.
Accordingly, save in the same storage, but the files will be available through a symbolic link.
This is all described in detail in the storage documentation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question