mercredi 3 juin 2020

refer variable from php to all blade Laravel 5

I have code in my controller which returns $data, and I want to refer it on all my blades, I can make routes(which'll refer $data) for each page, but I don't like this way. I thought should be better if I refer this $data on layout.blade (which include navbar, and etc...), but is it a possible to make route without url? cause I don't want to appear my layout.blade, So my question is, what is a best way to get $data on each blade?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire