Let's Build A Forum with Laravel and TDD
Episode 13 - Extracting to View Composers
Laracasts is packed full with over 1,000 lessons just like this one.
Sign up to get full access or
to your account and sit back.
Currently, we have two different SQL queries for fetching all channels directly in our view layer. Let's fix that by extracting a dedicated view composer.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!