2,680 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Thanks Alex. I take your point. I will give it some more thought. for now I have done a compromise whereby the form clears errors on a field only if the it is validated client side. Next up is the fun around validating uniqueness of a field via ajax
Well If I set up a 'rule' it might as well stop submission as well as tell the user that some thing is not right take this example: https://bootstrap-vue.org/docs/components/form-group
The thing i am trying to avoid is having two sets of rules one on the server and one on the client.
Started a new Conversation Clearing Validation Errors Unifying Client And Server Validation Rules?
Having enjoyed the laracast series by @jefferyway on vue forms I have been playing around with approaches to clearing the validation errors. But I have a use case that I wonder if folks to help with.
I really like the idea of having validation in one place (preferably the server). In Jeffery's tutorial errors are stored in an error class that is part of an abstracted form class. To clear an error on a field we look for keydown events on a field in the form and clear the error for that field. It all works fine except consider this:
We have a field 'name', it has two validation rules: required and min length:4, these are set in the controller or a request subclass on the server. When a user submits with the 'name' field empty it responds with status 422 and we can show the error.
So do we have separate client and server rules or find a way of the server returning the rules to the client to parse as part of the error response ?