IntellijAlpine icon indicating copy to clipboard operation
IntellijAlpine copied to clipboard

AlpineJS syntax error when using blade directive as parameter of function

Open trollfalgar opened this issue 1 year ago • 1 comments

When using blade directives @js, @json or any other, as parameter of a function inside AlpineJS directives, PHPStorm shows an syntax error.

image

image

This exist for a long time.

trollfalgar avatar May 19 '23 08:05 trollfalgar

just try x-init="dataLayerStartCheckout( {param: @js($data} )"

I know it's not perfect, but it works

COLIFEWorld avatar Jun 16 '23 22:06 COLIFEWorld