Тёмный

Making Laravel apps tenant aware using laravel-multitenancy 

Freek Van der Herten
Подписаться 7 тыс.
Просмотров 24 тыс.
50% 1

The laravel-multitenancy package can make any Laravel app tenant aware. The philosophy of this package is that it should only provide the bare essentials to enable multitenancy.
The package can determine which tenant should be the current tenant for the request. It also allows you to define what should happen when making a tenant the current one. It works for multitenancy projects that need to use one or multiple databases.
docs.spatie.be/laravel-multit...
If you liked this video, you might like be interested in my others stuff as well:
- follow me on twitter: / freekmurze
- subscribe to my newsletter on PHP and Laravel: freek.dev/newsletter
- consider purchasing one of our paid products: spatie.be/products
- monitor your websites through my uptime SaaS: ohdear.app
- check out packages my team has created: spatie.be/open-source
- read my blog: freek.dev

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@rajaasyraf25
@rajaasyraf25 Месяц назад
Love the lightweight and unopinionated approach that provides the flexibility to allow for many use cases! Great work!
@juhavehnia7862
@juhavehnia7862 2 года назад
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!
@izzudinanuar7867
@izzudinanuar7867 4 года назад
I hope you make more videos!
@hostnasicom1150
@hostnasicom1150 3 года назад
Awesome we need morre videos
@MMartinsMr
@MMartinsMr Год назад
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"
@emmanuelmnzava8966
@emmanuelmnzava8966 3 года назад
Hello an amazing tutorial would like to know how this works on deployment
@kelvinkibugi4335
@kelvinkibugi4335 3 года назад
What happens when using one application root domain but different databases for tenant finder?
@onlynudes1398
@onlynudes1398 3 года назад
Very informative, I'm trying this for my saas app, it is possible to use it as a sub domain?
@DanielGamboaStewart
@DanielGamboaStewart 3 года назад
How can you connect to "landlord" and make landlord aware of "results" that might be generated for each tenant (logged in users for example)
@alexanderruizespinozagonza9554
@alexanderruizespinozagonza9554 4 года назад
Genial!
@fernandomontero4568
@fernandomontero4568 Год назад
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.
@abhilashkumar2243
@abhilashkumar2243 2 года назад
this package is giving error with mongo db .. any help for mongo support????
@Hamzakhan-qe5jl
@Hamzakhan-qe5jl 3 года назад
alternative to valet for windows ?
@chad7837
@chad7837 3 года назад
where i can find this demo app ? for refference? thanks in advance
@gabrielLlanesMX
@gabrielLlanesMX Год назад
How to configure nginx for multi tenant( local, debian)
@eugenevandermerwe9152
@eugenevandermerwe9152 Год назад
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.
@sheehabmuhammad
@sheehabmuhammad 6 месяцев назад
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?
@henryugochukwu8398
@henryugochukwu8398 Год назад
How scalable is this, having separate databases created per tenant each time a new tenant is onboarded?
@arthuralfaro9886
@arthuralfaro9886 4 года назад
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
@NehalPatelTheBest 3 года назад
php artisan tenants:artisan "migrate:fresh --database=tenant"
@fernandomontero4568
@fernandomontero4568 Год назад
@@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?
@atoz4541
@atoz4541 3 года назад
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
@fernandomontero4568
@fernandomontero4568 Год назад
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?
@19peter83
@19peter83 Год назад
@@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
@fernandomontero4568
@fernandomontero4568 Год назад
@@19peter83 at the end i use spatie multi tenancy package
@seleldjdfmn221
@seleldjdfmn221 4 года назад
Here before 100K subscribers. We'll Make it! Oh, and happy put a pillow on your fridge Day! xP
Далее
A walkthrough of Laravel Dashboard
57:40
Просмотров 9 тыс.
Nice hiding.
00:43
Просмотров 3,5 млн
The Tools I Use to Build Products in Laravel
19:00
Просмотров 15 тыс.
Exploring Laravel 9's redesigned error page
59:13
Просмотров 8 тыс.
Multi-tenant Architecture for SaaS
11:07
Просмотров 107 тыс.
Microservices with Databases can be challenging...
20:52
🚀  TDD, Where Did It All Go Wrong (Ian Cooper)
1:03:55
Просмотров 552 тыс.
NEW in Filament 3: Multi-Tenancy
12:14
Просмотров 15 тыс.
Laravel Soulbscription: Free SaaS package Demo
7:45
Просмотров 25 тыс.
Nice hiding.
00:43
Просмотров 3,5 млн