DEV Community

Mahedi Hasan
Mahedi Hasan

Posted on

Binding Data to Views Using View Composers in Laravel

Thankfully, there’s a simpler way. The solution is called a view composer, and it allows you to define that any time a particular view loads, it should have certain data passed
to it—without the route definition having to pass that data in explicitly.

https://codechief.org/article/binding-data-to-views-using-view-composers-in-laravel

Top comments (1)

Collapse
 
ayaseensd profile image
Ahmed Y.

the link is broken
see the article from here : evernote.com/shard/s371/sh/c6bbd84...