Skip to content

Instantly share code, notes, and snippets.

@emargareten
emargareten / form-button.blade.php
Last active June 1, 2020 01:29
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 }}>