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

osebo-gotokuo's avatar

Is there a way to direct index.php to nwidart laravel modules?

Hi, I want to know if I can direct incoming traffic to a module instead of the default laravel route, controller, middleware and views. I am building a modular site and I want everything to be inside the modules. I have a core module the represents the index page with this route ('/', [CoreControlller::class, 'index'] but it's inside the default laravel web route . I want to know if can get straight to the core module without using laravel web route. I know this is very ambitious for a beginner like me but if can give me a head start maybe I can find my way. Thanks in advance

0 likes
0 replies

Please or to participate in this conversation.