[Vuejs]-Laravel forms broken after including Vue

0👍

Your curly braces conflict with Vue.js. There’s a Blade & JavaScript Frameworks section in Laravel’s documentation, saying:

Since many JavaScript frameworks also use "curly" braces to indicate a given expression should be displayed in the browser, you may use the @ symbol to inform the Blade rendering engine an expression should remain untouched. For example:

<h1>Laravel</h1>

Hello, @{{ name }}.

In this example, the @ symbol will be removed by Blade; however, {{ name }} expression will remain untouched by the Blade engine, allowing it to instead be rendered by your JavaScript framework.

Leave a comment