2022-11-29 10:07:39 +03:00

27 lines
540 B
PHP

<form
method="POST"
action="{{ $action }}"
@if ($class)
class="{{ $class }}"
@endif
@if ($role)
role="form"
@endif
@if ($novalidate)
novalidate="{{ $novalidate }}"
@endif
@if ($enctype)
enctype="{{ $enctype }}"
@endif
@if ($acceptCharset)
accept-charset="{{ $acceptCharset }}"
@endif
@submit.prevent="{{ $submit }}"
@keydown="form.errors ? form.errors.clear($event.target.name): null"
{{ $attributes }}
>
@csrf
@method($method)
{{ $slot }}
</form>