Laravel Multi-Tenancy: Tenant Login & Role-Based User Management Part #2 [HINDI]
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
Thank you so much sir for all this. Jitna v sikha hai laravel aapki vidoes se hee sikha hai
Thanks Ajay IT was really a great series and helped me a lot to achieve the client's deadline Thanks again
Thank you for the great series.
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.
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
I greatly appreciate your help.
Glad to help
Thanks bro ❤ for such great videos
Glad you like them!
thanks!!!
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. 🙏🙏🙏
Glad it helped!
very nice
Very informative
Glad you liked it
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
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.
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!!
Thank you for your kind words! Good luck 🤗
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.
Thank you, i have watched two videos without understand your language 😁 , but in the end you help me to fix my problems
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!
@@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
You can deactivate a tenant account by simply utilizing a flag and integrating it within your middleware.
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?
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.
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!
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
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?
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
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
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.
Very informative video 👌
Please update your mic on next videos.
Noted
would you convert our existing project in multi tenancy
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?
@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.
sir make video for laravel otp verification when user login
Please make a video of laravel twilio chat and video calling integration
How could Super Admin may Access Tenants DB's
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.
Can I use the domain name of one of the tenants only with the domain and not with the subdomain?
If i used same route on tenant.php it give error ..route name already exists like login
How difficult is it to create a tenancy app with Laravel and Vue.js on the front end? Is it difficult, guide me?
Hello sir i'm using laravel/ui auth how can i set tenant route.
can you please help me ?
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.
🙏
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
Do you have a github repository for this project?
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
how super admin can login as a tenant from super admin.
@Ajay Sir, how can we upload this multitenancy project in CPANEL shared hosting. Please Create a video on int ...................
AP ko koi solution Mila ha ?
How to make api with multi tenancy
how can i host this app on live server
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!
Yes, we can, but it will require additional effort.
@@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?
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.
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.
@@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.
Sir i am facing the same problem . please give some solution
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
Why are the subtitles always off in your videos?
Are you available for freelance work?
No Lilesh, will let you know
Hiii
Make a interview question answers video
Also make a log file use video
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
Was it working before?
Sir next video aap youtude video downloader jaisa koi website ka tutorial leke aao
Please share code?
We want a React JS series
only reactjs or laravel+reactjs ?
@@ajay-yadav laravel + inertia + react
please could u make it in english
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!!
Can you access the page at tenant.localhost:8000/?
@@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
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
I understand your problem. It might be caused by the middleware. Try removing the middleware and see if it resolves the issue.
@@ajay-yadav Sorry, what do you mean by eliminating the middleware? the middleware folder? or what file are you referring to? guide me please!
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
I am also facing this issue have you found any solution for this?
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
Load 'tenant.php' routes after 'web.php' routes.
Thanks @ajay-yadav