Published On Feb. 11th 2015

Laravel 5 Fundamentals: When You Want a View Partial to Always Receive Data

Episode 25 Run Time 16:14

Download

One initial gotcha that you'll encounter, when building your first Laravel app, is the need to always make some variable available to a view or view partial. Do you place the binding in your controller method? Well, what about every other route that loads the view? Certainly, the answer isn't to duplicate these bindings all over the place. Instead, we'll make use of view composers.

Please note that this series has been archived.