Published On Jan. 27th 2017

Laravel 5.4 From Scratch: View Composers

Episode 21 Run Time 5:05

Download
Very quickly, you'll encounter the situation when multiple views require the same piece of data. For example, if a sidebar widget requires a particular variable for every single page, well we can't be expected to pass that data from every single controller. No, instead, we can leverage view composers.