composer require league/flysystem-aws-s3-v3
use IlluminateSupportFacadesStorage;
$file_upload = Storage::disk('s3')->put('/folder_name', $request->file);
//must have in .env
AWS_ACCESS_KEY_ID=access_key
AWS_SECRET_ACCESS_KEY=secret_key
AWS_DEFAULT_REGION=region
AWS_BUCKET=bucket_name
AWS_USE_PATH_STYLE_ENDPOINT=false
//must have
use IlluminateSupportFacadesStorage;
//needed
composer require --with-all-dependencies league/flysystem-aws-s3-v3 "^1.0"