Upload Image on form to a Livewire component
I have a form that has fileupload and is uploading images. On the Filament Resource it all works fine but I also have a form on a custom livewire component on a custom page. All works fine except the file. It is saving the object instead of the path to the database. How can i extract the path
here is the dump od $this->data
at moment its storing the object in database.
6 Replies
Its the logo btw I am trying to save with $this->organisation->update($this->data);
Solution
Use
The getState() will run the validations and persist the images and return what you need.
Thanks and thank you for explaining as well. It works
and I see now its in the docs 🥺
all good. happens to us all.