0👍
✅
There is a ->storeAs()
method available on the Laravel’s request object.
You can use it like:
$path = $request->file('foto_dni')->storeAs(
'YOUR_FILE_PATH', 'YOUR_FILE_NAME'
);
Source:stackexchange.com