Any developer who has worked on the same project for a year or more will be well aware of the fact that, if you're not careful, your
User class can quickly turn into a monstrous God object. In the next few videos, one tip at a time, we'll review techniques you might implement to clean things up.
In this first example, we'll recognize related methods, and extract them to a dedicated object - which we then pass through to from our main
Published on Apr 13th, 2016.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.