I think you can do what you're after using the @{{ example }} syntax that Blade allows us to use when using a JS framework inside Laravel.