set s3 disk in laravel code example
Example 1: use s3 storage laravel
return Storage::disk('s3')->response('images/' . $image->filename);
Example 2: download data from s3 and save to local disk laravel
$s3_file = Storage::disk('s3')->get(request()->file);
$s3 = Storage::disk('public');
$s3->put("./file_name.tif", $s3_file);