Laravel S3 code example
Example 1: laravel link storage to public
php artisan storage:link
Example 2: use s3 storage laravel
return Storage::disk('s3')->response('images/' . $image->filename);
Example 3: laravel 7 upload file s3
$image = Image::create([
'filename' => basename($path),
'url' => Storage::disk('s3')->url($path)
]);
Example 4: laravel filesystem
$exists = Storage::disk('s3')->exists('file.jpg');