Laravel Multi-Tenancy using Domain Driven Design - Intro

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
all right so let's get started with this video um I want to start this video by showing what we're going to be building in this series and this is kind of test for me to test the waters of how many people would like me to make this as a full series and explain how each thing works so this is Introduction slash a walkthrough of the code base that I built uh I hope you enjoy it hit that like button feel free to subscribe [Music] so let me go ahead and turn off the camera all right so the first thing we're going to look at is what package I'm using tenancy for laravel this is Tennessee for level.com and this has some out of the box uh stuff that you can take a look at and see if it's okay for you to use it although there are custom ways of doing things and they're package with we're not discussing custom ways I am using packaging in this uh series but the way I'm going to explain it it's going to make a lot of sense why I went with package then building my own alright so I've left the front page blank so I use my package and do whatever you would like uh first thing what we're going to do is we're going to go and see how the registration so this is how you register your domain and your domain is tenancy.test you have already registered couple of them here which I'm going to demo once uh everything is done then you just have to go ahead and sign in so if I go and say let me go ahead and log in here now you can see I'm already logged in to the account so if I go log in it's going to take me to dashboard and let me see if I can log out yeah I haven't written the function functionality of logout you can see the login works because I'm being forwarded to that and if I come back here so it says this is your multi-tenant application and the ID number I have couple of other ones so Guru tabs um I think it's looking through so this is BB we go this one so you see that's changing let me actually assume so um it's pulling a different vendor every time I'm going to a a different route so this is Guru labs and then if I go here it's Guru tab see this number is different so BB and then three six three three zero so it's looking at different tenants with their different pages um next thing I want to show you right here so if you look at this screen you can see um I have three tenants and all three tenants have a different domain so this is screw Labs lab screw and Guru tabs Guru Labs I've created three domains and then each tenant has all the information saved here you can see everything is right here next thing I want to show you and right here you see every database so we saw the BB and 330. so it's creating a new database so it's a multi-database multi and project that we're gonna take a look at once you actually create these they're good you're going to be able to create a backend and a front end I doesn't matter which package you're going to use but you'll be able to um different say different pages or different application from this so it's a it's a pretty good tool if you are following level and how this works you can actually create a lot of really cool stuff using level using the domain driven design which I've already showed you guys in my previous series for domain driven design which as you can see the console controller the exception the handlers how you have now I've added tenancy service provider and again like I said previously video this is just a test for me to explain it to you how it works and if a lot of people will demand me to make the whole series I will go ahead and um then you um I have separated the concerns right here which has your dashboard layout your layout for the front end and you can use however you want I think if I go you can see it's pulling a tenant log out a route which so it's there but it's just now all right we'll figure that out up later but if you can see everything is here that's working with that package you can say Manchu why are you going to show us this because when I was looking for the similar issues or similar problems um I couldn't find something the way I wanted to do up and which is why I created this package or created this repository so you guys can learn from what I've learned and how it works with separating the concerns of each domain how the application I hope I'm making sense this is just a short video I wanted to cover uh one last thing I want to say is if you go into the documentation and if you're trying to do it yourself without me teaching it you can simply uh do a git repository checkout from my DDD series and then use the same thing and create it yourself if your Enthusiast like me I hope you enjoyed this video I will I will see how much people want me to make this series and then um I will decide in future how much I would want to put effort into this because it's very straightforward from um I've already shared the repository so you don't need to you know invent the veal it's already been invented but it's going to be helpful if you are trying to look for a solution so I hope you enjoyed this video hit that like button please subscribe share with your friends and family I'll see you in the next one
Info
Channel: Gurulabs
Views: 4,356
Rating: undefined out of 5
Keywords: laravel 9 domain driven development, ddd laravel 9, laravel, laravel 9, ddd, laravel 8, laravel project tutorial, laravel 9 tutorial, laravel tutorial, laravel project, livewire, domaindrivendevelopment, domain-driven, domaindrivenapplication, laravel tutorial for beginners step by step, php laravel youtube, domain driven design, what is domain driven design, inertiajs
Id: wtdwFS7Y50g
Channel Id: undefined
Length: 4min 41sec (281 seconds)
Published: Tue Jul 25 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.