How to fill form in a custom page?
hello people.
I made a new custom page on a resource with
Now, I want to display a form for the record I hooked up to the page using:
I made a form and I put it in the blade file.
The form is being displayed but is isn't filled.
I used fill() on the form but still the form is empty.
Anyone knows what's wrong?
4 Replies
I created a form using the artisan command and it outputs me
on the viewticket livewire component 😦
what is the ViewTicket code?
I think I fixed it, It needed to resolve the model instance and pass it to the form object but now I have another problem:
It disregards the relations, I cannot do something like created_by.name, contact_channel.name (which are relations defined in the model).
The correct code (apart the relation thing) is this:
Pages/ViewTicket:
filament/resources/ticket-resource/pages/view-ticket
(I resolved the object and passed it here)