Adding multi tenancy to an existing Laravel web application

preview_player
Показать описание
Today I'm adding multi-tenancy to an existing Laravel application.

Multi-tenancy can be setup with a single database, multiple databases, or a dedicated tenant database with multiple schemas. I'm choosing the latter approach with Postgres.

00:00 - Intro - Adding Multi-tenancy to an existing web application
00:40 - Designing our application-database architecture
05:39 - How we expect traffic to arrive into our tenant apps
09:54 - Adding and configuring the tenancy package
18:53 - Creating a new tenant
21:00 - Outro

#laravel #multitenancy #tenancy
Рекомендации по теме
Комментарии
Автор

hello mike, am really cannot find words to thank you for clearing my vision and my thoughts about multi-tenancy, please please please keep on helping us with your great explanation way.

vmooscode
Автор

this is the right video i was finding for tenancy and by the way you look like ben affleck batman.

tomjerry-nxdl
Автор

I can't understand. Why are you adding each tenant and changing the .env and config file? Doesn't the tenancy framework do that for you?

duzadam
Автор

When I saw existing application I thought you would show how to configure this package in an already developed application. The challenge is to modify a single user app to a multi tenancy one. Sure the video helps to configure using Postgres and all, but it is not on an existing app

EduardoWeidmanBarijan
Автор

Mike, Can you please create a quick video to use Single DB plz?

ripon
Автор

Hello, nice video.
One question, im trying to implement this into an application that is fully implemented using extemsions and concord. And im having difficulties doing so. Any advice?

seifeddinejandoubi
Автор

This is great, but how do you use it??

SharkFaceKilla
Автор

Hi How can I find Multitenancy with spatie and for MySql ?

oscarcontreras
Автор

Thank you for this great video
How to setup database connections if the Saas software is separate from landlord app?
I mean there is no tenant moderation from the Saas app, there will be a separate app to manage tenants.
What will be the settings in the Saas app and Landlord app.
And can you provide source codes for your tuts.
1 more thing, can you please explain how to do it with multiple mysql DBs?

SopanaAllah
Автор

Hi, thanks for making this great tutorial

hafizhfadhlurrohman
Автор

hi Mike,
how to create multiple schema in mysql ?

skmdbadruduja
Автор

Hi Mike. Where do I run those initial installation commands? I'm using putty for SSH

simarpreetsingh
Автор

Hi mike, excellent video, I am not understanding the use of tenancy_tenants database, can you please explain?

And also I am getting 'Class "app\Tenant" not found' error for 'php artisan tenants:migrate' command
My 'Tenant' model is in the app folder and in the tenancy.php config mentioned ''tenant_model' => \app\Tenant::class, '
Please help.
Thank you.

AcmeDevelopers
Автор

Can you share a video about spatie permission with team function. Thank you.

taolao
Автор

Please make a video on how to do it with multiple MySql databases ASAP.
Thank you

SopanaAllah
Автор

Mike, so you are saying, if I have already a project in Laravel, with just one admin user, using this package, I can create a SaaS.?

PauloPinto
Автор

Nice one Mike! Just a question: whats the difference between multiple Databases and multiple Schemas? Why did you go with multiple Schemas? Thanks

christostsangaris
Автор

Hi mike, excellent video always innovating. I need to ask you a question recently, I assumed that a security project would be the access control center for different applications, the system would manage the access permissions of each user to the different systems that are created on the server. What I can't figure out is how to handle route permissions for roles and groups from different systems in a single centralized application. I have handled the tenancy option, but still don't know how to fix it. how the security system can see the routes or access them

mileidyaular
Автор

Hi mike. I have stand alone HR web app. Can i implement multi tenancy to my existing HR web app? Or there is something that i need to know first. thank you. great video.

asyrafdeveloper
Автор

Thank you for the wonderful video.
Which software is that on 1:15

stevenlevittt