So I\'m trying to migrate my jquery to vue framework instead, I\'m using laravel 5.6 with webpack to build my project but my vue components are not showing up.
when
:post="@json($classPost)"
is your issue. @json
doesn't escape the output for use in a HTML attribute, which is why your screenshot of the source in the browser has that line in bright red - it's invalid (because of the "
characters in the resulting JSON, which end the attribute prematurely).
This'll do the trick:
:post="{{ json_encode($classPost) }}"