laravel get file name
$path = $request->image->getClientOriginalName();
laravel get file name
$path = $request->image->getClientOriginalName();
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us