Adysone
Custom resource route with extra parameters
Hello,
I'd like to make this work:
I'd like to preserve the "contact_type" parameter when I edit, create or delete a record in the Contact table.
In the navigation menu, I generate links dynamically according to "Contact types" created by the superadmin, so I came with this in the AdminPanelProvider (with a question in it):
Thanks!
2 replies
Update section heading programmatically
Hello,
Is it possible to update a section heading programmatically? Or display a form field in it?
I would like to display a "total cost" calculated with other fields of the form, in the heading of a section.
The issue is that I put a value in the heading like so:
But my "total_cost" field is not defined on a creation form, because it's calculated after some fields are updated.
How can I force the update of the heading? IS there a "boot" method on form builder?
12 replies
Test Livewire assertDispatched and assertSee after event dispatched
Hello,
I have the following field :
And I have the following test :
When I run my test, I have the following fails :
and
1. I don't understand why the first assertion fails and why the parameters aren't correct as I send the
$state
when I dispatch the event.
2. I don't understand why 22,12
is not in the HTML as when I test it in my browser, it works like a charm.4 replies