trait CompilesJs (View source)

Methods

string
compileJs(string $expression)

Compile the "@js" directive into valid PHP.

Details

protected string compileJs(string $expression)

Compile the "@js" directive into valid PHP.

Parameters

string $expression

Return Value

string

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.