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.

Top comments (1)

ayaseensd profile image
Ahmed Y.

the link is broken
see the article from here :