Masonite allows for very simple and easy to use validation. We’re going to both setup some simple validation rules in our controller and then see how we can display those validation messages in our view.
The Form
First we will build a simple login form with a username and password. We will simplify the form by removing all the styling and unnecessary information.
<form action="/login" method="POST">
{{ csrf_field }}
{{ back() }}
<input type="text" name="name">
<input type="text" name="email">
<input type="password" name="password">
<input type="passw...