While you explained the component well, it shows also a good example for the bad sites of Laravel. With Laravel there are many ways to do things "magically" or hidden from the developer who wants to understand the implemantation by reading the code. Looking just at the controller, it is incomprehensible where $timezone comes from. Filling values into the container somewhere and read from it in an other file is bad style. It coerces every college to know all ways that a framework offers. Especially supervisors can not know every fancy trick of all frameworks. Therefore, the possibilities for "magic" should only be used if that provides a BIG advantage, NOT just because it's possible. In your example it would be better to simply set the attribute value in the controller. One line, simple to understand. The most important thing about containers is that while they are good for a few situations they should be used as little as possible. So, please do not only teach how to use components of a framework but also when to use them.
@borakayalar
6 ай бұрын
Perfect you opened and cleared my mind
@JohnnyBigodes
Жыл бұрын
Love the service container... Would love to see more of it.
@Daltoncast
Жыл бұрын
I have a couple more videos planned for the topic 😀
@SuvroImran
Жыл бұрын
❤❤ great 🎉🎉🎉 upload more content like this.
@hussain4real
Жыл бұрын
Love the content, a quick reminder you misspelled primitives
@Daltoncast
Жыл бұрын
Thanks. Great catch! I’ve updated it.
@emstudios14
Жыл бұрын
You just saved a life, great 👍 content 👌
@Daltoncast
Жыл бұрын
Thank you so much. I’m glad it helped.
@coder236
2 ай бұрын
nice video dude keep up the work
@Daltoncast
2 ай бұрын
Thank you 😀
@matinlh644
8 ай бұрын
Great content, actually you made very unique and advanced content👌🏻
@Daltoncast
8 ай бұрын
Thank you so much for this comment. It made my day 😀
@matinlh644
8 ай бұрын
@@Daltoncast Love you man ❤️
@iteranq
8 ай бұрын
Hello Dalton, your videos are amazing! would you adjust your mic level, the audio level is so loooow
Пікірлер: 15