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

Propolis's avatar

Redirect to other server after login

I want to give every customer its own server (Digital Ocean droplet) on which the web application and database are running. This way I can arrange server capacity that is suitable for every customer. In addition, one customer cannot stand in the way of another when heavy operations are performed.

I want to create a general portal where all customers log in and that they are then redirected to their own server.

How can I enable with Laravel that a customer is switched to another server after logging in? Or are there other solutions that allow me to control server specs per customer?

0 likes
2 replies
larafever's avatar

Are you trying redirect to an external url?

return redirect()->away('domain.com');

Propolis's avatar

Thanks. With this I can redirect a customer from server 1 (login server) to server 2 (application / database). How can I then ensure that the customer does not have to log in again on server 2?

Please or to participate in this conversation.