Task 8 - customize validation messages

This commit is contained in:
PovilasKorop
2021-11-29 15:47:54 +02:00
parent ce6827fab8
commit 254985ac99
8 changed files with 130 additions and 3 deletions
@@ -0,0 +1,11 @@
<form method="POST" action="{{ route('buildings.store') }}">
@csrf
Name:
<br />
<input type="text" name="name" />
<br />
{{-- TASK: Customize the validation error message to say "Please enter the name" --}}
@error('name') {{ $message }} @enderror
<br /><br />
<button type="submit">Save</button>
</form>