Making Laravel apps tenant aware using laravel-multitenancy

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 พ.ย. 2024

ความคิดเห็น • 27

  • @rajaasyraf25
    @rajaasyraf25 5 หลายเดือนก่อน

    Love the lightweight and unopinionated approach that provides the flexibility to allow for many use cases! Great work!

  • @juhavehnia7862
    @juhavehnia7862 2 ปีที่แล้ว +7

    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!

  • @yoskokleng3658
    @yoskokleng3658 3 หลายเดือนก่อน

    old video is gold video.

  • @eugenevandermerwe9152
    @eugenevandermerwe9152 2 ปีที่แล้ว +3

    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 11 หลายเดือนก่อน

      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?

  • @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"

  • @izzudinanuar7867
    @izzudinanuar7867 4 ปีที่แล้ว +1

    I hope you make more videos!

  • @fernandomontero4568
    @fernandomontero4568 2 ปีที่แล้ว

    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 3 ปีที่แล้ว

    this package is giving error with mongo db .. any help for mongo support????

  • @gabrielLlanesMX
    @gabrielLlanesMX 2 ปีที่แล้ว

    How to configure nginx for multi tenant( local, debian)

  • @hostnasicom1150
    @hostnasicom1150 3 ปีที่แล้ว

    Awesome we need morre videos

  • @Hamzakhan-qe5jl
    @Hamzakhan-qe5jl 3 ปีที่แล้ว

    alternative to valet for windows ?

  • @emmanuelmnzava8966
    @emmanuelmnzava8966 3 ปีที่แล้ว

    Hello an amazing tutorial would like to know how this works on deployment

  • @chad7837
    @chad7837 3 ปีที่แล้ว

    where i can find this demo app ? for refference? thanks in advance

  • @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)

  • @kelvinkibugi4335
    @kelvinkibugi4335 4 ปีที่แล้ว

    What happens when using one application root domain but different databases for tenant finder?

  • @henryugochukwu8398
    @henryugochukwu8398 ปีที่แล้ว

    How scalable is this, having separate databases created per tenant each time a new tenant is onboarded?

  • @arthuralfaro9886
    @arthuralfaro9886 4 ปีที่แล้ว +1

    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 4 ปีที่แล้ว

      php artisan tenants:artisan "migrate:fresh --database=tenant"

    • @fernandomontero4568
      @fernandomontero4568 2 ปีที่แล้ว

      @@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?

  • @alexanderruizespinozagonza9554
    @alexanderruizespinozagonza9554 4 ปีที่แล้ว

    Genial!

  • @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 2 ปีที่แล้ว

      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