Let's now review the third choice for refactoring our code: custom events. As you'll see, this particular refactor does come with small complexity cost up front; however, particularly when dealing with actions that include multiple side effects, this can be a useful technique for your toolbelt.
Published on Dec 4th, 2018.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.