How to upload file to S3 using Laravel 8 filesystem code example
Example 1: laravel 7 upload file s3
$image = Image::create([
'filename' => basename($path),
'url' => Storage::disk('s3')->url($path)
]);
Example 2: laravel 7 upload file s3
$path = $request->file('image')->store('images', 's3');