Add id in form()->open() #188
-
Hello, I've been using laravel-html, because I've been migrating from Laravel Collective, I'm really enjoying it, but I'm having some problems. I need to add an id to the form to be able to apply some validations, but I'm not getting it, is there any way to inject an id into the Note that I added |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
you can use attributes() method {!! html()->form('POST', '[action/id]')->attributes(['id' => 'formAbc']) !!} |
Beta Was this translation helpful? Give feedback.
-
{!! html()->form('POST', '[action/id]')->id('formAbc') !!} |
Beta Was this translation helpful? Give feedback.
you can use attributes() method
{!! html()->form('POST', '[action/id]')->attributes(['id' => 'formAbc']) !!}
...
{!! html()->form()->close() !!}