I've got this setup in my View-Blade.php:
<comment-component :comments="{{$offer->comments}}" ></comment-component>
And here's the corresponding Vue-Component:
export default {
props:['comments'],
...
}
Issue at hand:
The problem I'm facing is that my Laravel Comment-Model has a one-to-many relationship with Employee-Model. When I pass over the Comment-Models to the Vue-Component, it only contains the employee_id and not the full employee-Json-Object.