Skip to content

Instantly share code, notes, and snippets.

@emargareten
emargareten / form-button.blade.php
Last active Jun 1, 2020
x-blade form button component
View form-button.blade.php
@props(['action', 'method'])
<form action="{{ $action }}" method="post">
@csrf
@isset($method)
@method($method)
@endisset
<button type="submit" {{ $attributes }}>