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

alihamzahq's avatar

Open-source Laravel 12 + React 19 multi-tenant SaaS starter — feedback welcome on the architecture

Hi all,

I’ve been working on an open-source multi-tenant SaaS starter kit and finally got it to a point where I’m comfortable sharing it publicly.

It’s built with Laravel 12, React 19, Inertia.js, and Stancl/Tenancy, using a database-per-tenant approach.

Repo:

https://github.com/alihamzahq/laravel-multi-tenant-saas-starter

The main reason I built it is that most multi-tenant Laravel resources I found were either commercial products or isolated tutorials. I wanted something free and MIT-licensed that shows a more complete SaaS flow, including:

- Central admin panel
- Tenant impersonation using signed URLs
- Tenant-level RBAC
- REST API with Laravel Sanctum
- Subdomain-based tenant routing
- Database-per-tenant isolation

I’d especially appreciate feedback on:

- The tenant impersonation flow
  Is the signed URL approach reasonable, or is there a more secure/idiomatic pattern?

- The RBAC layer
  Particularly how permissions should behave across the central app and tenant apps.

- Project structure and naming
  Anything that feels confusing, over-engineered, or not very Laravel-ish.

Demo credentials are included in the README, and the project runs locally with a basic subdomain setup.

Happy to discuss any part of the architecture.

Thanks for taking a look.

0 likes
0 replies

Please or to participate in this conversation.