Laravel Multi-Tenancy: Tenant Login & Role-Based User Management Part #2 [HINDI]

Sdílet
Vložit
  • čas přidán 26. 08. 2023
  • Welcome to our comprehensive Laravel Multi-Tenancy tutorial in Hindi! In this video, we'll take you through the essential steps of implementing a robust multi-tenancy system within a Laravel application.
    🔐 Tenant Login & User Roles 🔑
    One of the core aspects of a multi-tenancy setup is ensuring that each tenant (or customer) has their own isolated space within the application. We'll guide you through the process of setting up a secure tenant login system, allowing each tenant to access their specific resources without interfering with others. But that's not all - we'll also delve into user roles and permissions within a tenant's environment, ensuring controlled access and proper data segregation.
    🚀 What You'll Learn 📚
    Tenant Isolation: Discover how to architect your application to provide isolation between different tenants, ensuring their data and interactions are separate and secure.
    Tenant-Specific Login: Implement a seamless login experience where tenants can access their dedicated dashboards upon authentication.
    User Role Management: Learn how to assign roles and permissions to users within a tenant's space, maintaining fine-grained control over who can access what.
    Enhanced Security: Understand the security measures necessary to protect data integrity and prevent unauthorized access across tenants.
    Scalability Considerations: Explore best practices for scaling your multi-tenant application to accommodate a growing number of tenants while maintaining performance.
    🎓 Who Should Watch 👩‍💻👨‍💻
    Whether you're a beginner looking to grasp the fundamentals of multi-tenancy or an experienced Laravel developer aiming to enhance your skills, this tutorial is designed for you. Our step-by-step explanations, coupled with practical examples in Hindi, make complex concepts easy to understand and implement
    Laravel Multi-Tenancy: Tenant Login & Role-Based User Management Part #2 [HINDI]
    Our Playlists:
    OOP In PHP:
    • OOP - PHP
    Git Full Tutorial
    • GIT Tutorial
    Laravel 9:
    • Laravel 9
    Vue 3 Laravel 9 Tutorial:
    • Vue 3 Laravel 9
    Laravel Testing:
    • Laravel Testing
    Nuxt Js
    • NuxtJS
    Laravel And Vuejs
    • Laravel And Vuejs
    Laravel Notifications:
    • Laravel Notification
    Laravel And React Js
    • Laravel ReactJs
    Laravel Interview Questions And Answers:
    • Laravel Interview Ques...
    Laravel User Management System:
    • Laravel User Managemen...
    Laravel Multi Auth System
    • Laravel Multi Auth System
    Laravel Vue3 GraphQL
    • Laravel Vue 3 GraphQL
    Follow us:
    YoutTube: / ajayyadavexpo
    Instagram: / ajayyadavexpo
    Twitter : / ajayyadavexpo
    Linkedin: / ajayyadavexpo
    Github: github.com/ajayyadav4
    Please subscribe to my channel and share the video with your friends.
    #laravel #ajayyadav #multitenancy #multitenant #saasapplication #buildmultitenant

Komentáře • 111

  • @altaafalyidrishi8327
    @altaafalyidrishi8327 Před 9 měsíci

    Thank you so much sir for all this. Jitna v sikha hai laravel aapki vidoes se hee sikha hai

  • @aakashchoudhary8270
    @aakashchoudhary8270 Před 4 měsíci

    Thanks Ajay IT was really a great series and helped me a lot to achieve the client's deadline Thanks again

  • @ashishsaha388
    @ashishsaha388 Před 3 měsíci

    Thank you for the great series.

    • @ashishsaha388
      @ashishsaha388 Před 2 měsíci +1

      Hello I want to use "Single Login page for tenants", So, when login it will redirect to the the dashboard of associative tenant of the user. How can proceed in this case? Thank you.

  • @ashutoshpandey718
    @ashutoshpandey718 Před 10 měsíci

    Very informative video .... just wanted to know if this package will work with pusher broadcasting on multi tenant or need to do any adjustment .
    Thanks

  • @webdev58
    @webdev58 Před 10 měsíci

    I greatly appreciate your help.

  • @AbdullahKhan-qx2jc
    @AbdullahKhan-qx2jc Před 11 měsíci

    Thanks bro ❤ for such great videos

  • @NicolasEzequielAlmonacid
    @NicolasEzequielAlmonacid Před měsícem

    thanks!!!

  • @kr.deepakyadav8361
    @kr.deepakyadav8361 Před 2 měsíci

    Firstly thank you for this tutorials, I have search multiple way & place but not got this type of content, so thank so much for this content, and we are requesting please continue this playlist if possible. 🙏🙏🙏

  • @ShubhamSharma-sb7qq
    @ShubhamSharma-sb7qq Před 6 měsíci

    very nice

  • @hardeepsingh-ck3iw
    @hardeepsingh-ck3iw Před 11 měsíci

    Very informative

  • @athulksuresh9164
    @athulksuresh9164 Před měsícem +2

    i have an issue in the 18:48 section , after setting tenant login , the login link is not going to tenants domain its going to central domain why its happened plz replay

  • @zuberpatel983
    @zuberpatel983 Před 4 měsíci

    Thanks Ajay for detailed video on multi tenancy. I followed the same but it doesn't working for me throwing route duplicate issue and Undefined variable $errors for tenant login screen.
    If you guide me on this that will be really helpful to me.

  • @user-rw1vs8dq6k
    @user-rw1vs8dq6k Před 8 měsíci

    Have you not created your own SaaS since you handle the tenancy issue well? This tutorial is excellent, I did it successfully, I'm already going through the crud of products each tenancy. thanks my friend! success keep it up!!

    • @ajay-yadav
      @ajay-yadav  Před 8 měsíci +1

      Thank you for your kind words! Good luck 🤗

  • @user-rw1vs8dq6k
    @user-rw1vs8dq6k Před 5 měsíci

    Hi, friend! excellent course, thank you very much for sharing this knowledge! Do you think you can help me deploy this application in Digital ocean? thank you so much.

  • @AhmedSaadHassan
    @AhmedSaadHassan Před 3 měsíci

    Thank you, i have watched two videos without understand your language 😁 , but in the end you help me to fix my problems

    • @ajay-yadav
      @ajay-yadav  Před 3 měsíci

      Haha, no worries! Technical explanations can be tricky sometimes. I'm glad I could help you get things working in the end, even if it took a little back-and-forth. Feel free to ask if you have any other questions, and I'll try to explain them in a clearer way!

    • @AhmedSaadHassan
      @AhmedSaadHassan Před 3 měsíci

      ​@@ajay-yadav I just need to know how i can control Tenant status? for example how i can stop access on Tenant 1 with out delete it

    • @ajay-yadav
      @ajay-yadav  Před 3 měsíci

      You can deactivate a tenant account by simply utilizing a flag and integrating it within your middleware.

  • @programing97
    @programing97 Před 4 měsíci

    First, thank you. Second, I hope you can answer my question, please. When creating a multi-tenant system, as I explained, how can I transfer other data to each tenant, then if I transfer it and do something new in the future, for example, adding invoices, how will I add these invoices to all tenants?

  • @sokhibabdurasulov3323
    @sokhibabdurasulov3323 Před 5 měsíci

    even though there are a lot of other tutorials out there this series is best. however i dont understand Indian language so it is little complicated and I have to search every move you make online for explanation.

    • @ajay-yadav
      @ajay-yadav  Před 5 měsíci

      Thanks for the positive feedback! I'm glad you find the series helpful. If you have any questions or need clarification, feel free to ask. Happy coding!

  • @gauravamoli9277
    @gauravamoli9277 Před 6 měsíci

    suppose we want to introduce customer panel also based on same tenancy and guards how can we do that . i also want to write the customer routes in separate route file

  • @anikmondal464
    @anikmondal464 Před 18 dny

    Thank you for the informative series. I'm currently experiencing an issue with the tenant route not loading in the tenant view file. In the welcome view of the tenant folder, the route('login') URL is being fetched from web.php instead of tenancy.php route. Can you help me with a solution for this issue?

  • @user-wh9uy8pq4d
    @user-wh9uy8pq4d Před 7 měsíci

    I have one issue with this integration. When I login with tenant details it is showing the super admin details in navigation and in edit profile. I am not sure what I missed. In video at 20:51

  • @diegogiardina4005
    @diegogiardina4005 Před 7 měsíci

    Hi i'm following your guide and i do part 1 in laravel 10 but now i see that i haven't ProfileController in my project because laravel 10 don't have it, i have to create it? Thanks

  • @fazlulhoquesawrav4350
    @fazlulhoquesawrav4350 Před 10 měsíci

    tenancy working well in localhost, but after upload in server it's not working. maybe need to change in server side. but i have no idea about it.

  • @jasvinderkumar6725
    @jasvinderkumar6725 Před 9 měsíci

    Very informative video 👌
    Please update your mic on next videos.

  • @FarmTours-xj5lo
    @FarmTours-xj5lo Před 8 měsíci

    would you convert our existing project in multi tenancy

  • @shadyarbzharothman8689
    @shadyarbzharothman8689 Před 4 měsíci

    Thanks, but I have a question when you copy all the controller including the login one into the tenant so when you login how does it automatically now which User model to use?
    Because in the auth flle we have our User controller that's a pth to the admin User model so when you login as a tenant how it automatically change that?
    I have this issue and I create a middleware for it to check if it's a tenant route so If it's a tenant route I update the User model that auth by default user in 'config.auth' file so when I say auth()->attempt() it use the correct model
    But you didn't do that and it works how?

  • @future_of_coding
    @future_of_coding Před 11 měsíci

    @Ajay Sir, How are you? looking for a laravel application using jetstream fortify livewire multi auth, by default we got user login, registration, dashboard and 2fa, want for admin also different db table, different admin login, logout, dashboard admin 2fa,
    I tried but can't make it, after this series, can you make a tutorial for us, it's a humble request.

  • @RamuRamu-eu2sx
    @RamuRamu-eu2sx Před 9 měsíci

    sir make video for laravel otp verification when user login

  • @user-iv1il1yg9w
    @user-iv1il1yg9w Před 10 měsíci

    Please make a video of laravel twilio chat and video calling integration

  • @youtubepreacher6642
    @youtubepreacher6642 Před 9 měsíci

    How could Super Admin may Access Tenants DB's

  • @odd7107
    @odd7107 Před 4 měsíci +1

    my tenant is getting authenticated from super-admin->users table, though middleware is preventing from it; & im getting fetal error!! help !!! & i think you have skipped some code to edit on video.

  • @yunusemre5654
    @yunusemre5654 Před 4 měsíci

    Can I use the domain name of one of the tenants only with the domain and not with the subdomain?

  • @Safarnamacafe
    @Safarnamacafe Před 8 měsíci

    If i used same route on tenant.php it give error ..route name already exists like login

  • @user-rw1vs8dq6k
    @user-rw1vs8dq6k Před 8 měsíci

    How difficult is it to create a tenancy app with Laravel and Vue.js on the front end? Is it difficult, guide me?

  • @user-gh6vq4wr1m
    @user-gh6vq4wr1m Před 3 měsíci

    Hello sir i'm using laravel/ui auth how can i set tenant route.
    can you please help me ?

  • @dharmikpatel2482
    @dharmikpatel2482 Před 6 měsíci

    Ajay Bhai, i facing issue creation plan , do migration in tenant or landlord. or only landlord my humble request make 3rd video about Plans in Tenancy Series.
    🙏

  • @user-rw1vs8dq6k
    @user-rw1vs8dq6k Před měsícem

    Buddy, do you know how to deploy this type of multi-tenat application with multiple databases? Or do you know of any article that teaches how to deploy it? Can you help me if you know how? please

  • @eduardohpaludo
    @eduardohpaludo Před 7 měsíci

    Do you have a github repository for this project?

  • @tsdexter5027
    @tsdexter5027 Před 2 měsíci

    sir if i want to create custom roles from tenant domain how do i make them. i was trying to create new role through the tenant user id but the roles are not getting saved in the tenant database , they saves in the main database how to solve this problem i have researched all about it but my problem is not resolved. CAN YOU PLEASE HELP ME

  • @codelaravel
    @codelaravel Před 3 měsíci

    how super admin can login as a tenant from super admin.

  • @mobileapp.4739
    @mobileapp.4739 Před 11 měsíci

    @Ajay Sir, how can we upload this multitenancy project in CPANEL shared hosting. Please Create a video on int ...................

  • @SaddamHussain-pv8jv
    @SaddamHussain-pv8jv Před 11 měsíci

    How to make api with multi tenancy

  • @technicalpointsolutionbesm344

    how can i host this app on live server

  • @user-rw1vs8dq6k
    @user-rw1vs8dq6k Před 3 měsíci

    Friend, is there a way to assign a type of service to the tenant when they are going to register and assign them a welcome view according to the service chosen by them or assigned by one? In short, can you have more than one welcome page depending on the tenant's company? thank you!

    • @ajay-yadav
      @ajay-yadav  Před 3 měsíci

      Yes, we can, but it will require additional effort.

    • @user-rw1vs8dq6k
      @user-rw1vs8dq6k Před 3 měsíci

      @@ajay-yadav I understand, thanks friend! two questions my friend! Do you provide advice on this topic? And the other one, will you continue addressing this topic, do you have any interest on the channel?

  • @rakhiparo
    @rakhiparo Před 3 měsíci

    Hello Ajay sir,
    The article was quite informative, but I encountered some problems with routing. Specifically, routes intended for tenants, such as 'profile' and 'dashboard,' are redirected to the default authentication route. I would appreciate assistance in resolving this issue. Thank you.

    • @ajay-yadav
      @ajay-yadav  Před 3 měsíci

      Rakhi, the issue you're experiencing may be related to middleware. Try using dd() to check the value of APP_URL in the tenant.php route file. Also, test the dashboard page without the auth middleware; if it works correctly, the issue may be with APP_URL and needs to be fixed, or you may need to use a different middleware instead of auth.

    • @rakhiparo
      @rakhiparo Před 3 měsíci +1

      @@ajay-yadav tenant routes are not working with route(‘profile.edit’). But if i use url instead of route then it works. I am already using different middleware but this route always checks the web .php auth middleware. Please help me to resolve this issue.

    • @bikashpradhan4043
      @bikashpradhan4043 Před měsícem

      Sir i am facing the same problem . please give some solution

  • @ronakvyas8881
    @ronakvyas8881 Před 9 měsíci

    tenancy working well in localhost, but after upload in server it's not working. maybe need to change in server side. but i have 50 50 idea please next video make setup on server in cpanel

  •  Před 11 měsíci

    Why are the subtitles always off in your videos?

  • @LileshJadav
    @LileshJadav Před 10 měsíci

    Are you available for freelance work?

    • @ajay-yadav
      @ajay-yadav  Před 10 měsíci +1

      No Lilesh, will let you know

  • @dishabhandari8133
    @dishabhandari8133 Před 9 měsíci

    Hiii
    Make a interview question answers video

  • @GurinderPalSharma-t8i
    @GurinderPalSharma-t8i Před 8 hodinami

    i have an issue after setting tenant login , the login link is not going to tenants domain its going to central domain why its happened plz replay
    please reply as soon possible i am working live project

  • @altaafalyidrishi8327
    @altaafalyidrishi8327 Před 9 měsíci

    Sir next video aap youtude video downloader jaisa koi website ka tutorial leke aao

  • @eramitgupta271
    @eramitgupta271 Před 7 měsíci

    Please share code?

  • @amazingsujoy8628
    @amazingsujoy8628 Před 10 měsíci

    We want a React JS series

    • @ajay-yadav
      @ajay-yadav  Před 10 měsíci

      only reactjs or laravel+reactjs ?

    • @odd7107
      @odd7107 Před 4 měsíci

      @@ajay-yadav laravel + inertia + react

  • @swamybittu9628
    @swamybittu9628 Před 10 měsíci

    please could u make it in english

  • @user-rw1vs8dq6k
    @user-rw1vs8dq6k Před 2 měsíci

    Help me, I did everything you mentioned, I duplicated the files for the tenants, the Auth file, profile, etc., but when I click on the tenant login it sends me to the administrator login, that is, localhost:8000 and it doesn't take me to test3.localhost:8000 because it will be help me!!

    • @ajay-yadav
      @ajay-yadav  Před 2 měsíci

      Can you access the page at tenant.localhost:8000/?

    • @user-rw1vs8dq6k
      @user-rw1vs8dq6k Před 2 měsíci

      @@ajay-yadav Yes friend, I can access tenant.localhost:8000 but when I click the login button it takes me to localhost:8000/login which should be tenant.localhost:8000/login but I don't know why that happens. and if I enter the url tenant.localhost:8000/login, if it accesses me, what doesn't work for me is when I click the login button, it sends me to localhost:8000/login

    • @user-rw1vs8dq6k
      @user-rw1vs8dq6k Před 2 měsíci

      In short, the tenant's login button does not redirect me to its login page but the original one. For example, I have a tenant called test3.localhost:8000. When I click on its login button, it should redirect me to test3. .localhost:8000/login but it doesn't, what it does is redirect me to localhost:8000/login... I don't know if you understand my problem

    • @ajay-yadav
      @ajay-yadav  Před 2 měsíci

      I understand your problem. It might be caused by the middleware. Try removing the middleware and see if it resolves the issue.

    • @user-rw1vs8dq6k
      @user-rw1vs8dq6k Před 2 měsíci

      @@ajay-yadav Sorry, what do you mean by eliminating the middleware? the middleware folder? or what file are you referring to? guide me please!

  • @Safarnamacafe
    @Safarnamacafe Před 8 měsíci

    If i using route('login') in welcome blade file it redirecting to main login page not tennat login page ...i am using your approach???@ajay-yadav

    • @anikmondal464
      @anikmondal464 Před 18 dny

      I am also facing this issue have you found any solution for this?

  • @Safarnamacafe
    @Safarnamacafe Před 9 měsíci

    If we have Route::get('/') in tenant.php and same for web.php ..then it giving error or overwrite..so how i handle this situation for home route @ajay-yadav

    • @ajay-yadav
      @ajay-yadav  Před 8 měsíci +1

      Load 'tenant.php' routes after 'web.php' routes.

    • @Safarnamacafe
      @Safarnamacafe Před 8 měsíci

      Thanks @ajay-yadav