Carlos
Carlos
FFilament
Created by Carlos on 6/7/2024 in #❓┊help
Get Collection from related model using Spatie Media Library plugin
I found the answer, defining a Fieldset component with a relationship changes the scope of the $record, i.e.: [ RoomResource form ] ... Fieldset::make('hotel') ->relationship('hotel') ->schema([ SpatieMediaLibraryFileUpload::make('hotel_photos') ->collection('hotel_photos'), ]) ...
3 replies
FFilament
Created by Carlos on 5/9/2024 in #❓┊help
Conditionally rendering an icon in TextColumn
Thanks for your response, as far I know, the IconColumn displays "only" icons, in this case I only need to render the icon when the value is "true", if the value is "Dog", "Apple" or "House" I need to display the String
6 replies