mirror of
https://github.com/10h30/Test-Laravel-Validation.git
synced 2026-06-05 15:07:56 +09:00
19 lines
555 B
PHP
19 lines
555 B
PHP
|
|
{{-- 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>
|