Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Laravel Code To Rename file on server in the storage folder

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

PREVIOUS NEXT
Code Example
Php :: array constant in php 
Php :: email configuration for gmail in laravel 
Php :: how make custom menu in wordpress 
Php :: WooCommerce cart API php 
Php :: php ternary operators 
Php :: regex get text between braces 
Php :: laravel 6 orderby 
Php :: laravel where multiple conditions on single colmn 
Php :: how to insert multiple selected checkbox values in database in php 
Php :: wordpress get local date 
Php :: laravel artisan call with confirm 
Php :: laravel add attribute to model 
Php :: php code to generate strong password 
Php :: how do we calculate average in laravel 8 
Php :: generate slug on create laravel 
Php :: php filters 
Php :: php time() function 
Php :: php no such file or directory 
Php :: calculate days of a month 
Php :: laravel has one 
Php :: laravel 8 404 status 
Php :: wordpress log errors 
Php :: laravel multiple group by 
Php :: php week of a date 
Php :: codeigniter abort 404 
Php :: clear cache in symfony 
Php :: php count 
Php :: image upload in laravel 
Php :: bindparam php 
Php :: php ical 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =