Now that we have our validation error handling in place, we can move on to extracting a dedicated
Form class. This class can be responsible for resetting itself, submitting the AJAX request to our server, and more. Ready to dig in?
Once you finished this lesson, it's over to you. How might you expand these two classes two simplify your form interaction even further? Get started, and then let us know what you came up with in the comments.
The completed source code for this lesson is available on GitHub.
Published on Dec 22nd, 2016.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.