Form action
redbastie opened this issue · comments
redbastie commented
I don't see where to specify an action route/url for forms?
Pascal Baljet commented
Laravel passes additional attributes down to the form element, so you can use a hard-coded path or use a PHP method like route()
.
<x-form action="/api/user">
...
</x-form>
<x-form :action="route('api.user.store')">
...
</x-form>