Garrita
Save Spatie Media Library File in Relationship
here my explanation
https://github.com/filamentphp/filament/issues/14246
17 replies
Save Spatie Media Library File in Relationship
Hi @awcodes I've just created it
https://github.com/javierpomachagua/filament-demo
just clone it
composer install
php artisan filament:user
and that's all.
There are User and Profile models (Profile belongsTo User and User hasOne Profile).
The avatar image is from the User so when I created it in the ProfileResource using Group and relationship does not work, I only save the attributes for User except the files.
17 replies
Save Spatie Media Library File in Relationship
the resource is for the child AuctionCarResource, so in the form I create it along with the parent (Car), so that's why I use the relationship function in the group component, but for some reason the spatie media library is not working on create, just edit, I've researched in issues, pr, and documentation of course but nothing found.
17 replies