# Laravel with multitenancy

**URL:** <https://community.auth0.com/t/laravel-with-multitenancy/187494>\
**Category:** Dev to Dev Hub\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [June 2, 2025, 4:23pm UTC](https://community.auth0.com/t/laravel-with-multitenancy/187494 "2025-06-02T16:23:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![morris14](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/morris14/32/74383_2.png) [@morris14](https://community.auth0.com/u/morris14)\
**Post date:** [June 2, 2025, 4:23pm UTC](https://community.auth0.com/t/laravel-with-multitenancy/187494/1 "2025-06-02T16:23:55Z")

</div>

Are there any guides anywhere on how to implement Auth0 with Laravel, more specifically a laravel application which is multi-tenancy (using [https://tenancyforlaravel.com/](https://tenancyforlaravel.com/)) with a different database per tenant/org, where each business has its own subdomain… org-1.laravel-app.test/login etc.

I just need a user to be able to visit org-1.laravel-app.test/login, be redirected to Auth0 and for Auth0 to know which org that user is tied to, and then be kicked back to the callback route for that users org (e.g. org-1.laravel-app.test/callback)

Tips on how to allow users to log in to their own org, how to map a user in laravel to an org, how to pull the users roles etc. Anything is helpful!

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [June 4, 2025, 6:00pm UTC](https://community.auth0.com/t/laravel-with-multitenancy/187494/3 "2025-06-04T18:00:27Z")

</div>

Hi @morris14

Regarding multi-tenancy, I believe the following posts will be suitable:

- [Using nextjs-auth0 v4 in a multi-tenant app](https://community.auth0.com/t/using-nextjs-auth0-v4-in-a-multi-tenant-app/183313)
- [Multi-tenancy best practices](https://auth0.com/docs/get-started/auth0-overview/create-tenants/multi-tenant-apps-best-practices)
- [Building Single-Tenant vs. Multi-Tenant Apps | Auth0](https://auth0.com/blog/single-tenant-vs-multi-tenant/)

Let me know if you have any other questions on the matter!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 18, 2025, 6:01pm UTC](https://community.auth0.com/t/laravel-with-multitenancy/187494/4 "2025-06-18T18:01:15Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [September 5, 2025, 8:41pm UTC](https://community.auth0.com/t/laravel-with-multitenancy/187494/5 "2025-09-05T20:41:23Z")

</div>


