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 Koch14mo ago
Probably the same settings you are using for the Form?
jersonmr
jersonmrOP14mo ago
I'm not using settings in a form. Is a table just for read
Dennis Koch
Dennis Koch14mo ago
If you don't have a form, where is your data coming from then?
jersonmr
jersonmrOP14mo 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 Koch14mo ago
I think it should be the name of the media property
jersonmr
jersonmrOP14mo ago
so what should to be this media property?
jersonmr
jersonmrOP14mo ago
This is the error that I have
No description
Dennis Koch
Dennis Koch14mo 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
jersonmrOP14mo ago
I did that
Dennis Koch
Dennis Koch14mo ago
No you shared a screenshot with the message. See the Share link on the top right.
jersonmr
jersonmrOP14mo ago
awcodes
awcodes14mo ago
No description
awcodes
awcodes14mo 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
jersonmrOP14mo ago
Flare
Call to a member function filter() on null - The error occurred at http://pisto-dashboard.test/admin/clients
awcodes
awcodes14mo ago
Add the field name to make('fieldname') and see if you still get the error.
Want results from more Discord servers?
Add your server