Laravel and Vue: Creating a Portfolio website with a CRUD admin panel — Chapter 18

Handling Contact Form & Email Errors

Umar Taufiq
ITNEXT
Published in
9 min readFeb 17, 2020

--

Contact Form’s Laravel Validation

For our email to be successful, we need:

  1. Sender
  2. Valid Sender Email
  3. textContent/htmlContent

We can create a form request and require these in the rules function.

php artisan make:request ContactFormRequest

--

--

Writer for

Multimedia and Web Developer. Interested in efficiency and fancy things you can do with CSS.