Laravel To Do App: VIEW COMPOSER TO PASS COMMON VARIABLES (18/25)

In this video, we will create protected common variables & set them in our constructor of Project Controller class & then we will make use of helper View::share static method to pass them along to each and every view created in this class. This way we can abstract repeatedly called common variables & make our project controller more modular.

Source code is hosted on GitHub:
https://github.com/simplewebteam/laravel-todoapp-starter.git

Please subscribe, share & hit the like button.

Twitter: https://twitter.com/learn_by_exampl
Buy me a coffee: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HH49LF3J9G9QL

source