I am working on a laravel php project and I have a global blade where I have defined a variable
$a = "some value fetched dynamically";
And i am extending this blade in over 100 blade files like this
In all these blades how can I access this $a variable?
Versions – PHP 7.2.34, Laravel 5.3.31
Thanks in advance.
PS: if there is any other way where i can get the php variable/function defined in global blade in other blades please feel free to suggest.
from Newest questions tagged laravel-5 – Stack Overflow https://ift.tt/3jCIHoL