how could I intercept a request that depending on the domain or subdomain go to an specific route list like in a multi tenant website. any other recommendations about it?
If I understand correctly - this should work: pastebin.com/PcAf3y6c If you just want the subdomain to be dynamic, you can just do Route::domain('{prefix}')
I have a question. Why did you create __construct() in the controller? Laravel can solve dependencies if you use the service as param in the controller method directly.
looks good, look forward to watching a new video
great video! like always! Loving this design pattern serie
Yay, thank you!
pretty nice video!🤘
how could I intercept a request that depending on the domain or subdomain go to an specific route list like in a multi tenant website. any other recommendations about it?
If I understand correctly - this should work: pastebin.com/PcAf3y6c
If you just want the subdomain to be dynamic, you can just do Route::domain('{prefix}')
great bro , keep going, what editor do you use
Thanks! It's good old phpstorm. Theme is Catpuccin
I have a question. Why did you create __construct() in the controller? Laravel can solve dependencies if you use the service as param in the controller method directly.
I just prefer to have it in the constructor. Makes it easier to read for me!
can you do a OOP tutorial in the real world, I mean the advanced stuff such as readonly variables...etc.. Thank you for your amazing videos.
You may want to watch my series called "Great Laravel applications", it covers stuff like that!
1A