mardi 6 octobre 2015

How to echo vuejs data inside php function with laravel?

I currrently want to echo vuejs data inside a php function like so:

{{ auth()->user()->timesAddedBeer(@{{ beer.id }}) }}

But laravel gives me the following error:

syntax error, unexpected '{'

Can anybody tell me the right way to do this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire