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

SergioGregorutti's avatar

How can I create different environments with subdomains?

Hi all,

I have a Laravel application and I was wondering how can I create a dev and stage environment.

I mean, for example if I have www.myapplication.com I want a dev.myapplication.com and stage.myapplication.com with different deployment script, ddbb and environment variables for each domain but with the same application.

Im not sure how can I do this. Im using GoDaddy for my domain, Laravel Forge + Digital Ocean.

Anyone have an idea of how can I figure out this?

Thanks in advance!

0 likes
0 replies

Please or to participate in this conversation.