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

arifthefinix's avatar

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?

0 likes
0 replies

Please or to participate in this conversation.