Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Geertik's avatar

Can I use Spark for multitenacy project with multiple DB's

Hello,

I'm using Laravel for one year now and loving it. Learned a lot thanks to Laracasts.

Now I need to go a step further: multitenacy Is it possible to use Spark for a multitenacy web application? And if yes, how would I go about it?

  • Concerning DB I guess one DB for spark and a sperate DB for each client?
  • Concerning access Each client wil have is own url, fe client1.com, client.be, ... How do I direct the urls to the multitenant app and let it get it's specific config? Through .env files? If yes, how would I set this up?
  • what if I want to give certain tenants specific views?
  • anything else to consider?

Thanks on avance!

Geert

0 likes
0 replies

Please or to participate in this conversation.