Serving different routes depending the port webserver serves my applciation in laravel.

Dimitrios Desyllas - Jun 25 - - Dev Community

Dude check this out:

In my case I want to create a small monolith but:

  • Admin panel will be served upon port 8443
  • Normal app will be served upon port 80/443

I am using laravel 11 and the route config resides on different files:

  • routes/admin.php for admin panel
  • routes/web.php for the normal application

But…

I managed to serve a same application with different routes depending the port that webserver serves the application.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player