In this video on Leverage Potential of Laravel ViewComposer to share data across multiple views, you'll learn to share frequently used data with multiple templates.
Source Link: http://bit.ly/3rr4lOI
Timeline
-------------------------------
00:00 Introduction
00:48 Create a CompanyInformationModel Model
02:35 Create a CompanyInfoComposer Class
06:04 Create a ViewServiceProvider Class
08:05 Create a Controller
09:45 Create Views
11:15 Create Web Routes
13:32 Include the ViewServiceProvider Class within app.php
14:05 Run the application
15:01 Share data only to specific views
16:05 Use a closure function insisted of class within View:composer() method
18:09 Conclusion
#laravel #laraveltutorials #learnlaravel #php #phptutorials