laravel putFileAs code example
Example 1: laravel s3 download file
return Storage::download('file.jpg');
return Storage::download('file.jpg', $name, $headers);
Example 2: laravel filesystem
$exists = Storage::disk('s3')->exists('file.jpg');
return Storage::download('file.jpg');
return Storage::download('file.jpg', $name, $headers);
$exists = Storage::disk('s3')->exists('file.jpg');