laravel rename file ftp

48

Storage::move('hodor/oldfile-name.jpg', 'hodor/newfile-name.jpg'); // keep the same folder to just rename
Storage::rename('oldFolder/', 'newFolder/');

Comments

Submit
0 Comments