Carlos
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