laravel override server file and save another file code example
Example: laravel store file
$path = $request->file('avatar')->store(
'avatars', 'public'
);
$path = $request->file('avatar')->store(
'avatars', 'public'
);