DEV Community

Discussion on: Four ways to pass data from Laravel to Vue

Collapse
 
phillipmwaniki profile image
Phillip Mwaniki Nzuli

You can do all this in the View::composer. You can even access the store and add variables to it then export with View::share('store', json_encode($store));