Q:

Laravel storage disks save file from sftp to local

I want file from sftp disk to local
I configured my filesystems.php and appserviceprovider.php
Checking if exist works, but how can i put the remote file to my server?
$exists = Storage::disk('sftp')->exists(self::REMOTE_FILE_DEST);

A:

You can try something like this:
Storage::disk('local')
    ->put('my_local_filename', Storage::disk('sftp')
       ->get(self::REMOTE_FILE_DEST));

It should work because we are using togheter:
$contents = Storage::disk('sftp')->get('my_remote_filename');

and
Storage::disk('local')->put('my_local_filename', $contents);

