Apr 25, 2023
0
Level 1
Skip Inertia rootview for some routes
I am creating an application using Inertia and Vuejs. I have two rootview which I separated using a condition on rootView method. if (Auth::user()->role<2){ return 'admin'; }else{ return 'user'; }
I have some routes where I want to show the blade file not vue component. I tried to change the route file and try to return view instead of Inertia:render, but it won't work. How can I solve the issue?
Please or to participate in this conversation.