Level 63
I just found the solution : the $form wasn't always initialized.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I get this strange error message (strange because all seems to be ok in my code, but sure something is wrong, but I don't see what).
Property [$form.product_id] not found on component: [pages.ingredients-form-page]
The form product_id property is used in the form page and is declared in the controller via a Livewire form.
#[Rule('required', message: 'Le produit est obligatoire.', onUpdate: false)]
public $product_id = null;
...
public IngredientForm $form;
...
<livewire:components.products-select wire:model="form.product_id"></livewire:components.products-select>
What am I doing wrong ?
Any idea ?
Thanks for your help.
V
I just found the solution : the $form wasn't always initialized.
Please or to participate in this conversation.