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

Опубликовано: 25 Октябрь 2024
на канале: Learn By Example
2,666
19

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/lara...

Please subscribe, share & hit the like button.

Twitter:   / learn_by_exampl  
Buy me a coffee: https://www.paypal.com/cgi-bin/webscr...