spatie media library not working with s3 images in infolist entry

Hello, my problem is IDK how to print inside infolist an image coming from s3 bucket using the spatie media library package
SpatieMediaLibraryImageEntry::make()
->disk('s3'),
SpatieMediaLibraryImageEntry::make()
->disk('s3'),
What suppose to put inside make or how I can do that...
15 Replies
Dennis Koch
Dennis Koch9mo ago
Probably the same settings you are using for the Form?
jersonmr
jersonmr9mo ago
I'm not using settings in a form. Is a table just for read
Dennis Koch
Dennis Koch9mo ago
If you don't have a form, where is your data coming from then?
jersonmr
jersonmr9mo ago
the data was loaded previously from other system I ran sql data and I have the media table generated by spatie media library join to the model configuration Basically I'm migrating a previous dashboard to another using Filament
Dennis Koch
Dennis Koch9mo ago
I think it should be the name of the media property
jersonmr
jersonmr9mo ago
so what should to be this media property?
jersonmr
jersonmr9mo ago
This is the error that I have
No description
Dennis Koch
Dennis Koch9mo ago
Sorry, I am not really sure. I haven't used the package yet. Please share the error. The message alone doesn't help
jersonmr
jersonmr9mo ago
I did that
Dennis Koch
Dennis Koch9mo ago
No you shared a screenshot with the message. See the Share link on the top right.
awcodes
awcodes9mo ago
No description
awcodes
awcodes9mo ago
but more directly the value in make() should be the name of the field on the record. just like in a form or table
jersonmr
jersonmr9mo ago
Flare
Call to a member function filter() on null - The error occurred at http://pisto-dashboard.test/admin/clients
awcodes
awcodes9mo ago
Add the field name to make('fieldname') and see if you still get the error.