Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Validation and register form

Premium
8 min read

Our objective in this lesson is to display form errors on the client side.

Validation errors

Extending register store

When submitting forms it is crucial to indicate if the server doesn't accept the request and if some information provided needs to be clarified. In such cases, Laravel returns a response with more details. In our case, if we submit an empty form Laravel returns a response with a 422 status code with an object which looks like this:...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (29 h 14 min)

You also get:

54 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

RA
Richard A. Hoyle ✓ Link copied!

Tried to run composer install on the Laravel-API-Package-Demo-Main.zip file after unzipping it but I am getting an error 0e2b40518197a8c0d4b08bc34dfff1c99c508954 is gone (history was rewritten?) Install of phpunit/php-code-coverage failed In GitDownloader.php line 500: Failed to execute git checkout 0e2b40518197a8c0d4b08bc34dfff1c99c508954 -- && git reset --hard 0e2b40518197a8c0d4b08bc34dfff1c99c
508954 --

Any suggestions ?

PK
Povilas Korop ✓ Link copied!

Why are you running the install on ZIP? Can't you just do "git clone" from the repository?

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.