Created
July 9, 2020 20:12
-
-
Save minthemiddle/5f44fa98399ec6e3ea0b859755c06846 to your computer and use it in GitHub Desktop.
Markdium-Laravel Forms 101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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