I'm trying to create a Laravel site/app with the ability for users to publish their content on their own domain which they should be able add in the admin panel.

I came across tenancyforlaravel.com

How do I get the server (say I take a VPS for this app) to 'listen' to users' domains ? Say for example, there may be 10,000 users with each user having 2 domains pointed to my Laravel app. So how does tenancyforlaravel automatically configure it to listen to 20,000 domains on OpalStack ?

  • sean replied to this.

    anjanesh How do I get the server (say I take a VPS for this app) to 'listen' to users' domains ?

    On Opalstack the web server listens to the domains that you have assigned to your sites.

    So how does tenancyforlaravel automatically configure it to listen to 20,000 domains on OpalStack ?

    You could use our API to automate the assignment, ie you would need to write some sort of plugin to hook tenancyforlaravel to the API.

    On a related note, but different framework / language, is this the same as django-tenants and / or saaspegasus.com ? I am split between Laravel and Django now.

    • sean replied to this.

      anjanesh I'm not really familiar with any of these projects but after a skim I'd say there's some overlap with tenancyforlaravel and django-tenants, less so for pegasus.

      Thanks for the support - Im going to try this out anyway and check if it fits my requirements.

      Mastodon