Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

afoysal's avatar

Find Laravel route

I have below VueJS code.

import axios from '@axios'

export default {
  namespaced: true,
  state: {},
  getters: {},
  mutations: {},
  actions: {
    fetchUsers(ctx, queryParams) {
      return new Promise((resolve, reject) => {
        axios
          .get('/component/list/revision', {
            headers: {
              'Content-Type': 'multipart/form-data'
            }
            , params: queryParams
          })
          .then(response => resolve(response))
          .catch(error => reject(error))
      })
    },
  },
}

How can I find which Laravel route is associated with /component/list/revision VueJS route ?

0 likes
3 replies
AungHtetPaing__'s avatar

@afoysal do you want to find which laravel controller is associated with /component/list/revision? You can see your route list with php artisan route:list.

1 like
afoysal's avatar

@AungHtetPaing__ Thanks . Actually I would like to find out Laravel route which is associated with /component/list/revision VueJS route. Here is output of my php artisan route:list.

Alt image

AungHtetPaing__'s avatar

@afoysal I don't understand what do you mean laravel route associated with /component/list/revision VueJs route? Normally I call laravel route from VueJs so /component/list/revision is laravel route associated with VueJs. In your terminal or something, use cmd+f to find text /component/list/revision you will see it if it is laravel route and existed.

Please or to participate in this conversation.