You need to think about backup and restore. For example one your clients accidentally deletes their data. Restoring single database is much easier and faster than restoring database that contains all your clients. And this is with no downtime to the other clients. Very important consideration because it will eventually happen!
The type of multitenancy use case that I'm trying to find seems to be very hard to find. It's quite simple though if you look at something like Xero. When you sign up for Xero, you are another tenant on their system. You don't get a domain name or the ability to have a vanity domain name. Yet I can't imagine they scope each database record. Surely they have database per client? Anyway, it seems most of the tenancy packages you either need a domain name, or you need to scope. I'm trying to understand how to do multi-tenancy with seperate database but no custom domain.
That’s right. Finally, found someone with similar interests. Users need to memorize the domain name with multi domain system. If one of your users login after few months, how he will no his domain name? I am also looking for similar system, did you find one?
Hello, my name is Milton (Brazil). First of all I want to congratulate your work and your videos. For me, they are true learning lessons. I'm still a beginner and have a lot to learn yet. I would like to suggest a video talking about "Multitenancy" but from the creation of an example project to the end, because even though the documentation is excellent, with you explaining it would be much easier to learn. It would be possible? I also suggest "Single Database"
Hi, i have follow this tutorial + the docs online, but when i go to digit tenant1.test the only thing i receive is “tenant could not be identify on domain tenant1.test” it give an exception on TenantCouldNotBeIdentifyOnDomainException, what I can do? Please help.
When I migrate, my landlord database gets all of the tables that I wanted in the tenenat database... I have followed the tutorial... I think its got to do with .env database name and the database.php file...
@@NehalPatelTheBest Hi, i have follow this tutorial + the docs online, but when i go to digit tenant1.test the only thing i receive is “tenant could not be identify on domain tenant1.test” it give an exception on TenantCouldNotBeIdentifyOnDomainException, what I can do?
Hi, i have follow this tutorial + the docs online, but when i go to digit tenant1.test the only thing i receive is “tenant could not be identify on domain tenant1.test” it give an exception on TenantCouldNotBeIdentifyOnDomainException, what I can do?
@@fernandomontero4568 Have you solved the propblem? You probably need to create a TenantFinder class which extends Spatie\Multitenancy\TenantFinder\TenantFinder. Inthat class you create a method called findForRequest which returns the Tenant model class or NULL
Love the lightweight and unopinionated approach that provides the flexibility to allow for many use cases! Great work!
You need to think about backup and restore. For example one your clients accidentally deletes their data. Restoring single database is much easier and faster than restoring database that contains all your clients. And this is with no downtime to the other clients. Very important consideration because it will eventually happen!
old video is gold video.
The type of multitenancy use case that I'm trying to find seems to be very hard to find.
It's quite simple though if you look at something like Xero. When you sign up for Xero, you are another tenant on their system. You don't get a domain name or the ability to have a vanity domain name.
Yet I can't imagine they scope each database record. Surely they have database per client?
Anyway, it seems most of the tenancy packages you either need a domain name, or you need to scope. I'm trying to understand how to do multi-tenancy with seperate database but no custom domain.
That’s right. Finally, found someone with similar interests.
Users need to memorize the domain name with multi domain system. If one of your users login after few months, how he will no his domain name?
I am also looking for similar system, did you find one?
Hello, my name is Milton (Brazil). First of all I want to congratulate your work and your videos. For me, they are true learning lessons. I'm still a beginner and have a lot to learn yet. I would like to suggest a video talking about "Multitenancy" but from the creation of an example project to the end, because even though the documentation is excellent, with you explaining it would be much easier to learn. It would be possible?
I also suggest "Single Database"
I hope you make more videos!
Hi, i have follow this tutorial + the docs online, but when i go to digit tenant1.test the only thing i receive is “tenant could not be identify on domain tenant1.test” it give an exception on TenantCouldNotBeIdentifyOnDomainException, what I can do? Please help.
this package is giving error with mongo db .. any help for mongo support????
How to configure nginx for multi tenant( local, debian)
Awesome we need morre videos
alternative to valet for windows ?
Hello an amazing tutorial would like to know how this works on deployment
where i can find this demo app ? for refference? thanks in advance
How can you connect to "landlord" and make landlord aware of "results" that might be generated for each tenant (logged in users for example)
What happens when using one application root domain but different databases for tenant finder?
How scalable is this, having separate databases created per tenant each time a new tenant is onboarded?
When I migrate, my landlord database gets all of the tables that I wanted in the tenenat database... I have followed the tutorial... I think its got to do with .env database name and the database.php file...
php artisan tenants:artisan "migrate:fresh --database=tenant"
@@NehalPatelTheBest Hi, i have follow this tutorial + the docs online, but when i go to digit tenant1.test the only thing i receive is “tenant could not be identify on domain tenant1.test” it give an exception on TenantCouldNotBeIdentifyOnDomainException, what I can do?
Genial!
multi tenancy spatie route slugs problem -
Route::domain('{tenant}.localhost')->middleware('tenant')->group(function(){
Route::prefix('owner')->middleware(['auth', 'owner'])->group(function () {
Route::get('/Entries/edit/{id}',function($id){
echo $id;
});
});
});
output gives tenant name
Hi, i have follow this tutorial + the docs online, but when i go to digit tenant1.test the only thing i receive is “tenant could not be identify on domain tenant1.test” it give an exception on TenantCouldNotBeIdentifyOnDomainException, what I can do?
@@fernandomontero4568 Have you solved the propblem? You probably need to create a TenantFinder class which extends Spatie\Multitenancy\TenantFinder\TenantFinder. Inthat class you create a method called findForRequest which returns the Tenant model class or NULL
@@19peter83 at the end i use spatie multi tenancy package