Skip to content
Advertisement

Tag: global-variables

How to make a global variable for all blade laravel

Good Peoples. I have an issue with my project. In the layout blade, I need to fetch some data from the database. But I cannot pass variables as there has no route for the layout blade. It’s just a master blade. Is there any way to make a global variable and use it all blade? Thanks for the valuable replies.

Advertisement