Published On Mar. 21st 2014
• Run Time 16:16
Ever found yourself sneaking view-specific logic into your Eloquent model for convenience? Don't do that! Why should the model care or have knowledge of that sort of thing? Instead, leverage view presenters.
In this lesson, we'll tackle that very thing, while also reviewing a number of helpful techniques, including traits, singletons, and exceptions. When finished, don't forget to move on to the follow-up lesson!