Answer the question
In order to leave comments, you need to log in
How to distinguish between admin panel and site on laravel + vue?
Hello!
I am making an online store website. All incoming routes first go to laravel's web.php
Route::get('/{any}',function(){
return view('index');
})->where('any','.*');
<body>
<div id="app">
<header-component></header-component>
<categorybar-component></categorybar-component>
<router-view></router-view>
<footer-component></footer-component>
</div>
<script src="{{asset('./js/app.js')}}"></script>
</body>
const routes=[
{
path:"/",
name: 'Home',
component: () => import('./views/index.vue')
},
{
path:"/about",
name: 'About',
component: () => import('./views/navbar/about.vue')
},
{
path:"/auth",
name:'auth',
component: () => import('./views/registrationANDSign/auth.vue')
},
..................
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question