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

slund's avatar
Level 5

Several inertia roots

Hello,

We are building a website with several inertia roots -> for partner login, admin login and the main site. We have duplicated the "HandleInertiaRequest" middleware for each roots and customised it.

I have not been able to identify any drawbacks to this approach. The inertia magic is applied in the middleware, which is easily separated, but I cannot help to question whether there is something we have not thought about which will cause us troubles in a later stage.

Do you guys have experience with this approach or can you see any negative consequences?

0 likes
0 replies

Please or to participate in this conversation.