Sharing Data Between Views Using Laravel View Composers
John Kariuki wrote a tutorial on how to share data between views using Laravel View Composer. If you want to pass your data to multiple views, check this out.
Getting Started With Laravel Views
Views hold the presentation logic of a Laravel application. It is served separately from the application logic using laravel's blade templating engine.
Passing data from a controller to a view is as simple as declaring a variable and adding it as a parameter to the returned view helper method. There is no shortage of ways to do this.
Link:
This post is submitted by our members. Submit a new post.
Tags: Tutorials Laravel 5 Laravel 5.1 Laravel 5.2 Intermediate