title: How to retrieve User name in Vue component with Laravel
body: <p>I have a vue component that will send a message and I want to send the logged in user name. I'm using laravel 5.5</p>
  
  <pre><code>methods:{
          sendMessage(){
              this.$emit('messagesent', {
                  message:this.messageText,
                  user: {
                      name : {{Auth()::user()-&gt;name}} //Here is where it should be
                  }
              });
              this.messageText = '';
          }
      }
  </code></pre>
  
  <p>I already tried using</p>
  
  <pre><code>{{Auth()::user()-&gt;name}}
  Auth()::user()-&gt;name
  </code></pre>
  
  <p>Both give errors. How can I retrieve the name?</p>