I am trying to upload a file to two different locations. The lcoations being /2x/ adn /3x/. It uploads the file on 3x but doesn\'t on 2x and throws thi
/2x/
/3x/
You can try this:
$request->file('photo')->move($destination_path, $file_name);
Add DIRECTORY_SEPARATOR between path and filename if needed and copy that file at new location
copy($destination_path.$file_name, $new_path.$new_file_name);