mirror of
https://github.com/10h30/Test-Laravel-Validation.git
synced 2026-06-05 15:07:56 +09:00
Task 3 - errors shown in validation Blade
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{{-- Form without any design --}}
|
||||
|
||||
{{-- TASK: add the validation errors here - with whatever HTML structure you want --}}
|
||||
{{-- in case of title/description empty, visitor should see --}}
|
||||
{{-- "The name field is required." and "The description field is required." --}}
|
||||
|
||||
<form method="POST" action="{{ route('projects.store') }}">
|
||||
@csrf
|
||||
Title:
|
||||
<br />
|
||||
<input type="text" name="title" />
|
||||
<br /><br />
|
||||
Description:
|
||||
<br />
|
||||
<input type="text" name="description" />
|
||||
<br /><br />
|
||||
<button type="submit">Save</button>
|
||||
</form>
|
||||
Reference in New Issue
Block a user