I am trying to write a function in my Laravel app that will rename a file on an S3 drive.
I have tried:
if(Storage::disk('s3')->exists($old_path)) {
Storage::disk('s3')->move($old_path, $new_path);
}
but it does not do anything.
dd(Storage::disk('s3')->exists($old_path))
returns True
also
Storage::disk('s3')->put($full_path, file_get_contents($file));
Storage::disk('s3')->get($full_path);
both work fine!