How to set up an Laravel project with Vuejs

Asked

Viewed 614 times

0

Greeting, I am a simple Laravel project and would like to configure my project to accept Vue.js, but I’m getting this error message;

"Use of undefined constant titulo - assumed 'titulo' (View: C:\Users\Wladimir\Documents\projetos php\imoveis\resources\views\imoveis\create.blade.php)" 

Could you please take a look at my repository to see what is configured wrong.

My Repository

And so is the structure of my project

I believe it’s a simple thing;

inserir a descrição da imagem aqui

================================================

I did so {{ $titulo }}, still didn’t take

1 answer

1


  • I did an update on the post, could take a look, but just advance your suggestion generated the same problem

  • He picked it up with @, why would he pick it up with @, is there any explanation for this.

  • 1

    It worked that way @{{ titulo }}? If so, it is because Laravel and Vue.js use double keys for variables, placing the @ at the front avoids Laravel’s conflict with the Vue.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.