F
Filamentβ€’5mo ago
Alnuaimi

Why are the attachments not saved in the media table even though I am using a Custom page?

Why are the attachments not saved in the media table even though I am using a Custom page?
No description
5 Replies
Dennis Koch
Dennis Kochβ€’5mo ago
Did you read the readme?
The field will automatically load and save its uploads to your model. To set this functionality up, you must also follow the instructions set out in the setting a form model section. If you're using a panel, you can skip this step.
https://github.com/filamentphp/spatie-laravel-media-library-plugin
Alnuaimi
AlnuaimiOPβ€’5mo ago
Yes ,I read that,but that using with resource not custom page πŸ“„
Dennis Koch
Dennis Kochβ€’5mo ago
but that using with resource not custom page
Where did you read that? It explicitly says this step is needed when not using the Panel/Resources. So it applies to any usage of the forms in a Livewire component including custom pages
Alnuaimi
AlnuaimiOPβ€’5mo ago
see my code in up
Dennis Koch
Dennis Kochβ€’5mo ago
I saw your code
Want results from more Discord servers?
Add your server