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 Mar. 28th 2017

Let's Build A Forum with Laravel and TDD: Extracting to View Composers

Episode 13 Run Time 3:00

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.