Laravel move uploaded file

You need to use base_path() method. This method returns the fully qualified path to the project root:

So in your case try the below code:

$file = $request->file('file');
$file->move(base_path('\modo\images'), $file->getClientOriginalName());

and if you want to return the public directory then use:

$path = public_path();

For more info read Laravel helper functions


You need to do it this way:

$file->move(base_path('\modo\images'),$file->getClientOriginalName());