Support the ongoing development of Laravel.io →
Configuration Database Architecture

I'm going to start a SAAS model web application and gone through many searches. Finally in my mind have few queries. So I'm posting here to get experts ideas to overcome these problems before starts.

  1. How to handle situations like upgrade/change subscription in future?

  2. If I use separate database for each tenant, then while I want to update a small feature means I have to update it in each and every database/codebase. This is so difficult?

  3. I heard about module based schema/database with tables for SAAS apps. Is it good to use that kind of schema for SAAS web apps?

Expecting your valuable suggestions/ideas for the above queries.

Last updated 3 years ago.
0

SAAS are usually designed to scale horizontally in terms of client count. What is the point of using a database per clients?

What I suggest is using one database for main app, and one for all clients apps.

To directly respond to your questions:

  1. Use migrations (example path: migration/clientside) to create each client database. When upgrading you jsut have to run migrate on each client database to upgrade your system. Subscription upgrade should be handled in your app without change to the database.

  2. Answered in 1 with the migration trick.

  3. No experience about that sorry.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.