How to return using a link from a Vue component to Laravel Web Route?

Viewed 16

My component where I want to route to Laravel Notice the question in the href in the script: The idea is actually to return me from the Vue component to a Laravel view. I have realized that vue router allows me to go perfectly from one vue component to another vue component and what I need is to go from a link in a vue component to a laravel view that belongs to a web route

    <template>
      <div>
        <v-breadcrumbs
          :items="items"
          divider="."
        ></v-breadcrumbs>
      </div>
    
    </template>
    <script>
      export default {
        data: () => ({
          items: [
            {
              text: 'Dashboard',
              disabled: false,
              href: 'how do i add a laravel web route here?',
            },
            {
              text: 'Link 1',
              disabled: false,
              href: 'breadcrumbs_link_1',
            },
            {
              text: 'Link 2',
              disabled: true,
              href: 'breadcrumbs_link_2',
            },
          ],
        }),
      }
    </script>
0 Answers
Related