Kode Laravel untuk mengganti nama file di server di folder penyimpanan

///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