papa
119
1
Laravel

Data of Database reachable from all views

Posted 3 years ago by papa

Hi,

I have in my .blade.php View file an HTML Header that is mutual for every view for each controller and in this header I show some info I get from database.

Changing view using different controllers this header should stay the same with the same info.

For the time being I implemented for each controller to retrieve that values from database and show them in my Header but this is not exactly right. Normally this info should be declared and retrieved from one place only and calling each controller then the Header should be filled with the values.

Can someone assist with it..

Please sign in or create an account to participate in this conversation.