[Vuejs]-Multiple entry web routes in laravel and vue SPA app

0👍

It’s possible that ‘/admin/{any}’ and ‘/{any}’ routes are clashing, as if you type in /admin/ it will route you over to /{any}. Could you temporarily test with a different routing URIs to confirm it is not due to that?

As for the Vue part, wouldn’t it make more sense to use single file components. That way you wouldn’t need to check for the presence of an element by ID, just drop the SFC into your blade template like:

<admin></admin>

And move the rest of your code to the single file component.

Leave a comment