@props(['method' => 'POST']) @php $spoofedMethods = ['PUT', 'PATCH', 'DELETE']; $shouldSpoof = in_array(strtoupper($method), $spoofedMethods); @endphp
@csrf @if($shouldSpoof) @method($method) @endif {{ $slot }}