Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Aug. 31st 2016

Whip Monstrous Code Into Shape: Consider Refactoring Your Views

Episode 18 Run Time 12:49

Download
So you've begun to wrangle your monstrous User God object into place? Great - but now what about your views? Developers sometimes have a tendency to ignore the structure and cleanliness of their templates. Try not to do this. Give the same respect to each template, as you would to any PHP class. In this episode, we'll review a handful of techniques for refactoring your views.