mirror of
https://github.com/10h30/Test-Laravel-Validation.git
synced 2026-07-11 19:05:53 +09:00
Task 4 - showing specific validation error
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<form method="POST" action="{{ route('products.store') }}">
|
||||
@csrf
|
||||
Name:
|
||||
<br />
|
||||
<input type="text" name="name" />
|
||||
<br />
|
||||
{{-- TASK: show the validation error for the specific "name" field --}}
|
||||
{{-- using one Blade directive: pseudo-code below --}}
|
||||
{{-- @directive --}}
|
||||
{{-- {{ $message }} --}}
|
||||
{{-- @endDirective --}}
|
||||
<br /><br />
|
||||
<button type="submit">Save</button>
|
||||
</form>
|
||||
Reference in New Issue
Block a user