In the previous lesson, I demonstrated a high-level way to manage your validation. We used services and custom exceptions to handle the flow. In this lesson, however, we'll back-track and try a different approach: hooking into model events.
As with many things in the coding world, there are multiple ways to achieve a particular end goal.
Published on Nov 11th, 2015.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.