Property [$image] not found on component
Hey, I am creating a form on a Page created using
php artisan make:filament-page
inside the Admin Panel but for the image
field it is giving Property [$image] not found on component: [app.filament.app.pages.submit-contest-entry]
error after file is uploaded from the frontend. While declaring public $image
property in the class it gives the following error Property type not supported in Livewire for property: [null]
Any idea what could be the case?
ThanksSolution:Jump to solution
You’re missing the mount and the statePath. https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#adding-the-form
2 Replies
Solution
You’re missing the mount and the statePath. https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#adding-the-form
Thanks @awcodes for the help!
It works now!