I found this. Get the incomng request which is an file object and then move it to a folder using the original name.
The parameters are move(folder_location,the_name_of_the_file.jpg)
Request::file('image_name')->move('images', Request::file('image_name')->getClientOriginalName());
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community