Support the ongoing development of Laravel.io →
Database Forms Mail
Last updated 1 year ago.
0

Hi, I'm pretty new to this as well, but hope I can help!

You are missing a name attribute on your email input which is required in order to pass the value when the form is submitted.

As no email address is passed through to the controller the validator will fail - because the email field is required. The controller then redirects to the 'welcome' page with the validation errors. The validation error will be shown on the page if you insert the following into your welcome blade:

<p>{{ $errors->first('email') }}</p>
Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

apurva2342 apurva2342 Joined 17 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.