I 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?
I 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?
It's not possible because the server can't access the JS value at the time executing the php script.