Have you ever had a controller action that, over time, grows and grows as you declare and fetch all necessary data for each new section of the page? Very quickly, things can become messy. Lately, I've been thinking about an alternative, widget-based approach for structuring portions of my views. Come along as I build this useful new
Widget class from scratch.
View the source code for this episode on GitHub.
Published on Oct 17th, 2019.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.