mardi 5 juillet 2016

Gaming website structure in Laravel

I'm currently migrating my browsergame from my own PHP-MVC framework to the Laravel framework. I'm having some trouble with structuring the site and I don't know what's the best way to do it. How should I structure the homepage and the gameservers?

- www.homepage.com (driven by Laravel)
-- /game/s1 (subfolder, so it's driven by the same Laravel instance)
-- /game/s2 (..)
-- /game/s3 (..)
-- ...


- www.homepage.com (driven by Laravel)
- s1.homepage.com (pointing to the homepage Laravel instance)
- s2.homepage.com (..)
- s3.homepage.com (..)
- ...


- www.homepage.com (driven by Laravel)
- s1.homepage.com (driven by a new Laravel instance)
- s2.homepage.com (..)
- ...

Well, the third option is possible but ridiculous, as you have to install laravel for each gameserver. So there are two options left.

The first one merges everything together in one domain, but it can be very, very complex.

The second option is an option too, and I see some people using it, but I don't understand why you would do that. Because that same Laravel instance is handling everything. The only difference is that you're pointing to a subdomain instead of a subfolder.

Am I missing something here? Would like to hear your thoughts about it.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire