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.
Asked
Active
Viewed 239 times
1 Answers
1
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

lagbox
- 48,571
- 8
- 72
- 83

David Clews
- 795
- 6
- 14