public function copyToRestore($input)
{
File::cleanDirectory(restore_path());
$file = $input['file'];
$destinationPath = restore_path();
$filename = $file->getClientOriginalName();
// $extension = $file->getClientOriginalExtension();
$uploadSuccess = $file->move($destinationPath, $filename);
if ($uploadSuccess) {
$file = $destinationPath . '/' . $filename;
return $file;
} else {
return false;
}
}