You can always setup subdomains and let laravel link to them. Check the following url out : https://laravel.com/docs/5.3/routing#route-group-sub-domain-routing
Nov 17, 2016
3
Level 7
Multiple laravel project in DigitalOcean Host. No laravel forge.
I wanted to create a website which will have this routes.
- www.mywebsite.com -> This will be a one page portfolio that has the projects list I created.
- www.mywebiste.com/e-commerce/public/ -> this will contain my e-commerce sample project
- www.mywebsite.com/social-network/public/ -> this will contain my social network project
- www.mywebsite.com/blog-website/public/ -> this will contain my blog samlple project
In a cPanel this is easy but in DigitalOcean can't seem to figure it out how to do this. how do I do this? what should I learn?
Level 11
Go through these videos - the LEMP videos if you're on Nginx and LAMP if you're using Apache:
https://serversforhackers.com/series/lamplemp
They'll teach you how to set that up for yourself (and you can use whatever directory structure you'd like).
The key point will be setting up Virtual Hosts (Apache calls them VirtualHosts while Nginx just calls each site a Server).
2 likes
Please or to participate in this conversation.