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

  Рет қаралды 10,244

Ajay yadav

Ajay yadav

Күн бұрын

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/aja...
Please subscribe to my channel and share the video with your friends.
#laravel #ajayyadav #multitenancy #multitenant #saasapplication #buildmultitenant

Пікірлер: 119
@aakashchoudhary8270
@aakashchoudhary8270 7 ай бұрын
Thanks Ajay IT was really a great series and helped me a lot to achieve the client's deadline Thanks again
@androidguides6862
@androidguides6862 15 күн бұрын
Very helpful Sir please start a tutorial to develop a saas based affiliate management project
@sokhibabdurasulov3323
@sokhibabdurasulov3323 8 ай бұрын
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 8 ай бұрын
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!
@kr.deepakyadav8361
@kr.deepakyadav8361 5 ай бұрын
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. 🙏🙏🙏
@ajay-yadav
@ajay-yadav 5 ай бұрын
Glad it helped!
@altaafalyidrishi8327
@altaafalyidrishi8327 Жыл бұрын
Thank you so much sir for all this. Jitna v sikha hai laravel aapki vidoes se hee sikha hai
@StevenOrtiz-g5r
@StevenOrtiz-g5r 11 ай бұрын
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 11 ай бұрын
Thank you for your kind words! Good luck 🤗
@programing97
@programing97 6 ай бұрын
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?
@anikmondal464
@anikmondal464 3 ай бұрын
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?
@AhmedSaadHassan
@AhmedSaadHassan 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
​@@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 6 ай бұрын
You can deactivate a tenant account by simply utilizing a flag and integrating it within your middleware.
@ramsp6433
@ramsp6433 Ай бұрын
@@ajay-yadav 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
@StevenOrtiz-g5r
@StevenOrtiz-g5r 8 ай бұрын
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.
@zuberpatel983
@zuberpatel983 7 ай бұрын
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.
@StevenOrtiz-g5r
@StevenOrtiz-g5r 3 ай бұрын
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
@ashutoshpandey718
@ashutoshpandey718 Жыл бұрын
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
@athulksuresh9164
@athulksuresh9164 4 ай бұрын
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
@jai_codes
@jai_codes 18 күн бұрын
You need to prevent that route from RouteServiceProvider Page by adding a condition that if current request coming from central_domain then default auth routes will add into app
@diegogiardina4005
@diegogiardina4005 9 ай бұрын
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
@pranavjoshi4011
@pranavjoshi4011 18 күн бұрын
Where is First Video i am not getting this series properly please guide us step by step it's very imp series
@shadyarbzharothman8689
@shadyarbzharothman8689 6 ай бұрын
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?
@odd7107
@odd7107 7 ай бұрын
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.
@rakhiparo
@rakhiparo 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@@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 3 ай бұрын
Sir i am facing the same problem . please give some solution
@dharmikpatel2482
@dharmikpatel2482 9 ай бұрын
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. 🙏
@StevenOrtiz-g5r
@StevenOrtiz-g5r 6 ай бұрын
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 6 ай бұрын
Yes, we can, but it will require additional effort.
@StevenOrtiz-g5r
@StevenOrtiz-g5r 6 ай бұрын
@@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?
@ashishsaha388
@ashishsaha388 5 ай бұрын
Thank you for the great series.
@ashishsaha388
@ashishsaha388 5 ай бұрын
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.
@yunusemre5654
@yunusemre5654 6 ай бұрын
Can I use the domain name of one of the tenants only with the domain and not with the subdomain?
@gauravamoli9277
@gauravamoli9277 8 ай бұрын
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
@StevenOrtiz-g5r
@StevenOrtiz-g5r 11 ай бұрын
How difficult is it to create a tenancy app with Laravel and Vue.js on the front end? Is it difficult, guide me?
@jasvinderkumar6725
@jasvinderkumar6725 11 ай бұрын
Very informative video 👌 Please update your mic on next videos.
@ajay-yadav
@ajay-yadav 11 ай бұрын
Noted
@tsdexter5027
@tsdexter5027 5 ай бұрын
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
@AtulGupta-j1f
@AtulGupta-j1f 10 ай бұрын
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
@DibakarKhamrui
@DibakarKhamrui Ай бұрын
tenant route not defined error get and post route but resource route working how solved it plz
@FarmTours-xj5lo
@FarmTours-xj5lo 10 ай бұрын
would you convert our existing project in multi tenancy
@RamuRamu-eu2sx
@RamuRamu-eu2sx 11 ай бұрын
sir make video for laravel otp verification when user login
@Akshsharma-y7x
@Akshsharma-y7x Ай бұрын
I want to use a single database for all tenants.
@HimanshuJangir-r7r
@HimanshuJangir-r7r 5 ай бұрын
Hello sir i'm using laravel/ui auth how can i set tenant route. can you please help me ?
@fazlulhoquesawrav4350
@fazlulhoquesawrav4350 Жыл бұрын
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.
@Safarnamacafe
@Safarnamacafe 10 ай бұрын
If i used same route on tenant.php it give error ..route name already exists like login
@HassanAshraf-o1i
@HassanAshraf-o1i Жыл бұрын
Please make a video of laravel twilio chat and video calling integration
@eduardohpaludo
@eduardohpaludo 9 ай бұрын
Do you have a github repository for this project?
@future_of_coding
@future_of_coding Жыл бұрын
@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.
@youtubepreacher6642
@youtubepreacher6642 Жыл бұрын
How could Super Admin may Access Tenants DB's
@webdev58
@webdev58 Жыл бұрын
I greatly appreciate your help.
@ajay-yadav
@ajay-yadav Жыл бұрын
Glad to help
@codelaravel
@codelaravel 5 ай бұрын
how super admin can login as a tenant from super admin.
@AbdullahKhan-qx2jc
@AbdullahKhan-qx2jc Жыл бұрын
Thanks bro ❤ for such great videos
@ajay-yadav
@ajay-yadav Жыл бұрын
Glad you like them!
@hardeepsingh-ck3iw
@hardeepsingh-ck3iw Жыл бұрын
Very informative
@ajay-yadav
@ajay-yadav Жыл бұрын
Glad you liked it
@ShubhamSharma-sb7qq
@ShubhamSharma-sb7qq 9 ай бұрын
very nice
@ronakvyas8881
@ronakvyas8881 Жыл бұрын
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
@NicolasEzequielAlmonacid
@NicolasEzequielAlmonacid 3 ай бұрын
thanks!!!
@mobileapp.4739
@mobileapp.4739 Жыл бұрын
@Ajay Sir, how can we upload this multitenancy project in CPANEL shared hosting. Please Create a video on int ...................
@prankvideo2685
@prankvideo2685 Жыл бұрын
AP ko koi solution Mila ha ?
@GurinderPalSharma-t8i
@GurinderPalSharma-t8i 2 ай бұрын
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
@ajay-yadav
@ajay-yadav 2 ай бұрын
Was it working before?
@GurinderPalSharma-t8i
@GurinderPalSharma-t8i 2 ай бұрын
@@ajay-yadavNo
@ramsp6433
@ramsp6433 Ай бұрын
@@ajay-yadav i am also getting same issue. for tenants all urls are main website urls
@dishabhandari8133
@dishabhandari8133 Жыл бұрын
Hiii Make a interview question answers video
@dishabhandari8133
@dishabhandari8133 Жыл бұрын
Also make a log file use video
@technicalpointsolutionbesm344
@technicalpointsolutionbesm344 8 ай бұрын
how can i host this app on live server
Жыл бұрын
Why are the subtitles always off in your videos?
@LileshJadav
@LileshJadav Жыл бұрын
Are you available for freelance work?
@ajay-yadav
@ajay-yadav Жыл бұрын
No Lilesh, will let you know
@altaafalyidrishi8327
@altaafalyidrishi8327 Жыл бұрын
Sir next video aap youtude video downloader jaisa koi website ka tutorial leke aao
@SaddamHussain-pv8jv
@SaddamHussain-pv8jv Жыл бұрын
How to make api with multi tenancy
@StevenOrtiz-g5r
@StevenOrtiz-g5r 5 ай бұрын
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 5 ай бұрын
Can you access the page at tenant.localhost:8000/?
@StevenOrtiz-g5r
@StevenOrtiz-g5r 5 ай бұрын
@@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
@StevenOrtiz-g5r
@StevenOrtiz-g5r 5 ай бұрын
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 5 ай бұрын
I understand your problem. It might be caused by the middleware. Try removing the middleware and see if it resolves the issue.
@StevenOrtiz-g5r
@StevenOrtiz-g5r 5 ай бұрын
@@ajay-yadav Sorry, what do you mean by eliminating the middleware? the middleware folder? or what file are you referring to? guide me please!
@amazingsujoy8628
@amazingsujoy8628 Жыл бұрын
We want a React JS series
@ajay-yadav
@ajay-yadav Жыл бұрын
only reactjs or laravel+reactjs ?
@odd7107
@odd7107 7 ай бұрын
@@ajay-yadav laravel + inertia + react
@eramitgupta271
@eramitgupta271 10 ай бұрын
Please share code?
@swamybittu9628
@swamybittu9628 Жыл бұрын
please could u make it in english
@Safarnamacafe
@Safarnamacafe 10 ай бұрын
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 3 ай бұрын
I am also facing this issue have you found any solution for this?
@Safarnamacafe
@Safarnamacafe 11 ай бұрын
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 11 ай бұрын
Load 'tenant.php' routes after 'web.php' routes.
@Safarnamacafe
@Safarnamacafe 10 ай бұрын
Thanks @ajay-yadav
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 13 МЛН
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 8 МЛН
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 17 МЛН
This new tool made me an AI SaaS in minutes┃Cursor & v0 killer?
18:01
I Remade YouTube From Scratch Using Just Bash
17:51
icitry
Рет қаралды 46 М.
Multi-tenancy in Laravel
1:24:05
JustSteveKing
Рет қаралды 6 М.
[Live-Coding] Laravel Multi-Tenancy with Single Trait
16:01
Laravel Daily
Рет қаралды 39 М.
Adding multi tenancy to an existing Laravel web application
21:45
Kompute’s Edge
Рет қаралды 28 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 13 МЛН