DEV Community

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

Collapse
 
starvsion profile image
Junhai

2 things

  1. If you use @json, you wrap it with single quote on html
  2. 5th way, using laravel echo and push notifications
Collapse
 
aschmelyun profile image
Andrew Schmelyun

Nice catches! I've wrote about #2 before, love using echo.

Collapse
 
peckyboy profile image
peckyboy

Thanks a lot for pointing out the single quote ( number 1). I was almost already dismissing this post