Skip to content

Commit

Permalink
Update create.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Feb 13, 2024
1 parent f27d235 commit 58ae0d5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion resources/views/projects/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
{{-- 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." --}}

@if($errors->any())
<div class="alert alert-danger">
<ul>
@foreach($errors->all() as $error)
<li>{{$error}}</li>
@endforeach
</ul>
</div>
@endif
<form method="POST" action="{{ route('projects.store') }}">
@csrf
Title:
Expand Down

0 comments on commit 58ae0d5

Please sign in to comment.