How to place vue variable inside a laravel bracket

Posted 2 years ago by jay_gorio

I am having problem displaying the vue variable output when using it together with laravel. Below is my code.

     <input type="text" 
               class="form-control search-bar__input" 
               placeholder="Search Courses, Interests, Schools or Institutions" 
               autocomplete="on" 
               autofocus="on"
               v-model="query"
               v-on:keyup="search">
        <ul class="list-group">
            <li class="list-group-item" v-for="course in courses">
                <a href="{{ route( 'courses.show', @{{course.id}} ) }}">@{{ course.title }}</a>
            </li>
        </ul> 

In the above code I make used of @{{course.id}} inside the route in the a element. However it seems it is not working. Can anyone help me on this.

Please sign in or create an account to participate in this conversation.