I am wanting to pass the data from my app controller to my vue:
class AppController extends Controller
{
/**
* @param Request $request
* @return Response
*/
public function index(Request $request)
{
return response()
->view('pages.app', ['highScore' => HighScore::getHighScore()], 200);
}
}
Here is my routes managed in vue:
const routes = [
{
path: '/',
name: 'home',
component: Home,
meta: { bodyClass: 'page' },
props: true
},
]
Now within my home view I am populating the following within props:
props: ['highScore']
But it is undefined, any help would be appreciated

