I need to get the storage class of a object in a s3 bucket using the Laravel flysystem, but the class has no method, how can this be done.
The project thephpleague/flysystem-aws-s3-v3
needs updating to be more eloquent.
In Blade:
@php
$as3StorageMetaData = ($as3Storage->getMetadata($file));
@endphp
In file loop use:
$as3StorageMetaData["storageclass"]
returns a constant.
This project could do with the function getStorageClass
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.