DEV Community

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

1

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

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.

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay