Vue js object property called within a blade call possible?

Posted 1 year ago by douglas_quaid

Hi I have the following inline-template for a list of courses

<courses inline-template>
            <ul v-for="course in">
                <li><a href="{{ route('', ['id' => @{{}}]) }}"><b>@{{ }}</b></a></li>
                <p>@{{ course.description }}</p>
                <ul v-for="lesson in course.lessons">
                    <li><a href="#"><b>@{{ }}</b></a></li>
                    <p>@{{ lesson.description }}</p>

I want to reference the route to a course nicknamed '' (/courses/{course}) and I want to pass in to the route the id that the vue course object has. However, Laravel is saying

Parse error: syntax error, unexpected '{'

How do I fix this call? Is this even possible to call vue js property inside of a laravel blade route function?


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

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.