Skip to content

Instantly share code, notes, and snippets.

@minthemiddle
Created July 9, 2020 20:12
Show Gist options
  • Save minthemiddle/5f44fa98399ec6e3ea0b859755c06846 to your computer and use it in GitHub Desktop.
Save minthemiddle/5f44fa98399ec6e3ea0b859755c06846 to your computer and use it in GitHub Desktop.
Markdium-Laravel Forms 101
<!-- Blade, e.g. welcome.blade.php -->
<form action="{{ route('form.submit') }}" method="POST" class="space-y-4">
@csrf
<div>
@error('fullname')
<div class="text-red-500">{{ $message }}</div>
@enderror
<label for="fullname">Fullname</label>
<input type="text" name="fullname" value="{{ old('fullname') ?? '' }}" class="form-input">
</div>
<div>
<button type="submit">Submit</button>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment