In Lumen, you can not group your subdomains so that you can not use wildcard subdomains which is one of the most annoying features of the Lumen. What people recommend is using more than one Lumen installations per subdomain or use Laravel with subdomain routing where you can use route paramaters like route URIs. However, with a simple control mechanism, you can decide what routes will be registered upon request.
Imagine the scenario where you have multiple subdomains, such as multiple locales for the internalization of your application served as en.example.app and es.example.app; you don't need to put each of them as a seperate entry to your both homestead config file and the hosts file if all of them will be served from the same application. There is of course an easier way. Let's assume our application is located within the ~/Code/Example folder and we want to map it to example.app, furthermore, the ip address assigned to our box is 192.168.10.10
In this article, we will get our newly created server to ready for deployment. First, we will create a new user for deployment. Then we will install the software that is needed to run our Laravel project.
Deploying Laravel applications is not that hard, however, it's hard to find documentations on how to do it with Rocketeer. In this article I'll cover on how to install Ajenti to freshly installed Ubuntu VPS and deploy Laravel projects. Firstly, if you haven't read this article of Bryan Kennedy's about the security of Linux servers, start with it, I'll assume that, you have read and applied the instructions mentioned within that article.