Copier le fichier d'un répertoire vers un autre Laravel

//Copy image using file facade laravel
$url = $data['featured_image'];
$imageName = substr($url, strrpos($url, '/') + 1);
$selected_file = str_replace(\URL::to('/'),'',$url);
\File::copy(public_path().'/'.$selected_file, public_path().'/storage/images/pages/'.$imageName.'');
Fani385