Skip to content

Commit

Permalink
🧑‍💻 Put method and CSRF token after fields
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed Jan 21, 2024
1 parent f575311 commit f19c40a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions res/views/components/form.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@tag('form', $attributes->merge([...compact('action'), 'method' => $method === 'GET' ? $method : 'POST', 'enctype' => $hasFiles ? 'multipart/form-data' : false]))
@csrf
@method($method)
{{ $slot }}
@endtag
@method($method)
@csrf
@endtag

0 comments on commit f19c40a

Please sign in to comment.