Laravel medialibrary dynamically add component
I’m using laravel-medialibrary-pro
v2.7.3 and livewire
v2.12.8 to make a form page for a content management system. I have 2 Laravel models: Partner
and PartnerDocument
in a one-to-many relationship. The PartnerDocument
model contains some additional data for the file that is associated with it, so this model uses the SpatieMediaLibraryProHttpLivewireConcernsWithMedia
trait.