[Vuejs]-Laravel pass json to vue.js

1👍

My guess is that you have to send your data as JSON. Try this:

 return view('employees.employees')->with('employees',json_encode($employees));
👤dev0

-1👍

I did it like this, before declaring Vue.

var employees = {!!  json_encode($employees) !!};

then

 list: employees,

Leave a comment