Kod laravel, aby zmienić nazwę pliku na serwerze w folderze pamięci

///PLEASE VOTE ON CODEGREPPER IF THIS CODE HELPS YOU 
$destination = 'public/reports/'.$oldreport.'.pdf';//or any extension such as jpeg,png
        $newdestination = 'public/reports/'.$reportkey.'.pdf';
      $bb=  Storage::rename( $destination, $newdestination ); // keep the same folder to just rename file on server
Distinct Dunlin