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

ntseles's avatar

Laravel on different domains with same database

Hi all, I was reading through some of the 'subdomain' topics but none seem to cover my circumstances.

I have a laravel 9 project that is a client portal for a business. The portal resides on admin.business.com subdomain. I need to make a interface for clients to login and update their information and a separate one for shops(that service these clients) to see calendars etc. So basically, 3 different subdomains that separate data from each other. Can someone advise me the best practice to accomplish this?

Thanks in advance

0 likes
2 replies
Tray2's avatar

I would use the same login for all, and assign roles to the users. You can still use three different layouts depending on the route, but the actual login should be the same for them all.

Please or to participate in this conversation.