Lumen-framework: please let route support sub-domain

Created on 13 May 2015  路  8Comments  路  Source: laravel/lumen-framework

wish u let route group support sub-domain
plz

Most helpful comment

In case someone else stumbles across this, like I did; you can use this: https://gist.github.com/assertchris/a1b8df1476467b0eb29d7d6815b39d81

All 8 comments

You can run Lumen on a subdomain. However if you're looking for something like subdomain wildcards like in Laravel you should just use Laravel. Lumen is for microservices. Not big applications that use multiple subdomains.

@lukasgeiter
so u mean I should run 2 project use lumen in different domain?
I don't think so. I know lumen is for micro-services.
but in my idea it should support multiple sub-domains.

I disagree with Lumen supporting subdomains, personally. Lumen is for microcomponents or quick websites. If you absolutely need subdomains, you should either split your project into two microservices (Lumen installs) or use Laravel as it's for that type of thing. Otherwise, eventually, Lumen would just become another Laravel.

I suppose this is up to debate though, but that's my 2垄

I think that possible response is already stated in docs.

"In addition, Lumen does not use Symfony's Routing component. Instead, nikic/fast-route is used for greater performance. If you need Symfony Routing features such as sub-domain routing or optional parameters, you should use the full Laravel framework."

Lumen is for micro services. I would either switch to Laravel or create another services (on subdomain in your case)

In the docs page http://lumen.laravel.com/docs/routing there is a "subtitle" for "Sub-Domain Routing", unfortunately the anchor is missing.

Anyone knows what was the intention?

In case someone else stumbles across this, like I did; you can use this: https://gist.github.com/assertchris/a1b8df1476467b0eb29d7d6815b39d81

I didn't come here because of subdomains, I was googling optional route parameters for Lumen, and apparently that's also not supported? Just leaving this comment here while I keep looking.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Andrei-Vakulski picture Andrei-Vakulski  路  3Comments

patrikengborg picture patrikengborg  路  3Comments

codercms picture codercms  路  4Comments

gfazioli picture gfazioli  路  5Comments

timrogers picture timrogers  路  3Comments