@props([ 'id' => 'idForm', 'action' => '#', 'method' => null, 'formMethod' => null, 'file' => false, {{-- Si true, agrega enctype --}} 'spoof' => true, {{-- Si true, genera automáticamente @method() --}} 'class' => '' ])
merge(['class' => " $class"]) }} > @if($formMethod && strtoupper($formMethod) !== 'GET') @csrf @endif @if($formMethod && strtoupper($formMethod) !== 'POST') @method($formMethod) @endif {{ $slot }}