@props(['action', 'method'=>'POST']) @php $method = strtoupper($method); $formMethod = in_array($method, ['GET', 'POST']) ? $method : 'POST'; @endphp
@csrf @if( $formMethod !== $method) @method($method) @endif {{ $slot }}