How to use two different views with interia and vuejs #772
Unanswered
Maninder-cell
asked this question in
Help (Vue)
Replies: 2 comments 6 replies
-
In HandleInertiaRequests middleware, you can overwrite the rootview method and implement the logic required to determine the view that should be returned for a particular request. I am currently in transit and writing from my phone I would have written some examples. |
Beta Was this translation helpful? Give feedback.
3 replies
-
@xavi7th have you call this middleware in routes or not because I know inertia middleware only runs when we refresh the page but I don't want that. i want root view changes without refreshing the page would it work. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
in interia we have the only view which is default as app.blade.php. Is there any way that I can use another view like seller.blade.php and admin.blade.php. i know it would break the rule of single page application. but if you have any idea please let me know. i really need help with it. because I have different templates for different sections of the website.
Beta Was this translation helpful? Give feedback.
All reactions