DEV Community

Tr.Ra
Tr.Ra

Posted on

Share global variable to views

declare variable in Providers\AppServiceProvider on function boot()
Ex:
View::share('location_address', null);

Top comments (0)