richardhulbert

richardhulbert

Software Engineer at Code Vanilla

Member Since 1 Year Ago

London

Experience Points
2,320
Total
Experience

2,680 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
22
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    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.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
2,320 XP
May
23
6 days ago
Activity icon

Replied to Clearing Validation Errors Unifying Client And Server Validation Rules?

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

May
22
1 week ago
Activity icon

Replied to Clearing Validation Errors Unifying Client And Server Validation Rules?

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.

Activity icon

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.

Now here is the rub. As the user types the error disappears, what we really want is the next error to appear (min length) until the user types the 4th character. With client side javascript that is simple BUT it means having two sets of rules.

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 ?

Any thoughts?