Carlos
CheckboxList not working on Edit
Hello, I have this Checkbox list field that depends of the value of another field:
`
And in my model I have this relationship:
When I create a resource it works, and saves the related records, but when I try to edit a record it doesn't store the changes and wipes out any previous related record. How can I address this?
Thank you
3 replies
Get Collection from related model using Spatie Media Library plugin
Hello, in my project we use spatie media library to manage media files, let's say that I have 2 models and one belongsTo the other: Hotel and Room, Hotel has a media collection, i.e. "hotel_photos". What approach do I need to display the "hotel_photos" in the HouseResource form? the component SpatieMediaLibraryFileUpload only retrieves collections that belongs to the $record.
Thanks.
3 replies