Laravel 6 Advanced - e1 - Service Container

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 442

  • @СергейГолубев-л5п
    @СергейГолубев-л5п 5 ปีที่แล้ว +253

    YOU ARE LITERALLY A BEAST.
    1) Before watching, I wanted to leave a sarcastic comment like "Lol, why SC are an advanced thing".
    2) When I watched 2 mins, I got amazed how clear u're explain things.
    3) When I watched 7-8 mins, I went litrally crazy about clarity around. So I've leaved a comment with praise.
    4) By the end of the video, MAN, I DUNNO HOW TO EXPRESS MY ADMIRATION TOWARDS WORK U PERFORMED. THANKS. Ofc, like + subscribe, keep going with this videos. So coolm so clear, my applause!

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว +29

      Best. Comment. Ever. And I have to tell you, I truly appreciate you being humble enough to write a comment like this. Kudos and glad you appreciated the lesson.

    • @brunofunnie
      @brunofunnie 4 ปีที่แล้ว +4

      @@CodersTape Please, create more examples like this about Laravel Architecture. this is by far the best explanation I've seen so far in years. Holly Molly!

  • @minjon56
    @minjon56 5 ปีที่แล้ว +85

    Amazing! You don't just copy the code, you understand the process. That's why your explanations are logical, clear and easy to follow. I really enjoyed watching the tutorial, thx for sharing your time and knowledge with us.

  • @АлександрБерест-ш1б
    @АлександрБерест-ш1б 5 ปีที่แล้ว +52

    Victor, you are the BEST. I'm not native english speaker. My level is B1, but I uderstood whole concept of SC from this lesson. You explain like a God)

    • @Влад-Донцов
      @Влад-Донцов 3 ปีที่แล้ว +2

      согласен мужик с тобой полностью

  • @aiviskri
    @aiviskri 4 ปีที่แล้ว +3

    Probably one of the best tutorials I've seen. Not many people cover the more advanced topics of laravel, and I love how you demonstrated it by a real world example. Really awesome

  • @borakayalar
    @borakayalar 7 หลายเดือนก่อน

    The best SC narrative content I've watched so far. It is an example where the logic can be fully understood with a real scenario. Thanks for your effort

  • @vjalone1
    @vjalone1 5 ปีที่แล้ว +4

    Working with laravel from last 3 years and its the best explanation for the service container ❤️ keep it up

  • @joseluisburgon5390
    @joseluisburgon5390 5 ปีที่แล้ว

    Production quality (especially audio) + your clear explanation make this type of content the best that can be found on TH-cam about PHP and Laravel. Thanks!

  • @kranthikumar889
    @kranthikumar889 4 ปีที่แล้ว +1

    I am searching for this knowledge for 1 month, finally, found here,
    This is The Best Examples for concepts like " IOC, DI, DIP, SP, DIC, SC",
    You Explained DIP concept very well and how to register 2 or more classes to one single Interface logic is SUPER,
    It's Really solved my many questions and you made my Code Beautiful.
    Thank you Very much. :)

  • @francisco9180
    @francisco9180 4 ปีที่แล้ว

    Been watching tutorials for many years.. These are the best of the best quality.

  • @josevillasmil63
    @josevillasmil63 4 ปีที่แล้ว +3

    I congratulate you, I have seen several of your lessons on video and you have faithfully demonstrated that you are an excellent teacher, great diction and concatenation of ideas. Excellent.

  • @DanangCod
    @DanangCod 3 ปีที่แล้ว

    I've been here for years and I've been traveling youtube a lot and now I just wanna say nobody can do it like you our dearly loved ones VICTOR!

  • @jjhehe5747
    @jjhehe5747 4 ปีที่แล้ว

    Thank you for explaining on WHY we should use Services as other tutorials just teach how it's used but not why should we use it. Very well explained!

  • @dark.phoenix71
    @dark.phoenix71 ปีที่แล้ว +1

    I typically don't comment. But this Oh my god! This is not one of the best. This is the best advanced laravel course on the internet.

  • @exikoz
    @exikoz 3 หลายเดือนก่อน +1

    We miss you Victor, I have learned a lot from your videos.

  • @delmontee
    @delmontee 8 หลายเดือนก่อน

    Thanks for this! I learned about the reflection class only yesterday but you've shown me how and why to utilise the service provider, which I was previously struggling with!!

  • @creative-commons-videos
    @creative-commons-videos 5 ปีที่แล้ว +6

    I was a fan of Jeffery Way, now you are on Top of my list, your style of describing thing is like magic :)

    • @shajy8351
      @shajy8351 3 ปีที่แล้ว

      Exactly same here. He was my top in the list but now this guy. Pure gold words coming out of his mouth. And jeffrey is amazing too.

  • @subhendudas7865
    @subhendudas7865 ปีที่แล้ว

    Awesome, First video I’ve seen that actually clearly explains Service Containers.Such a great teacher. You explain things so easy. For me as a beginner in the whole MVC world, your tutorials help me a lot cuz they are so easy to understand. Thank you man!

  • @Brianle180
    @Brianle180 5 ปีที่แล้ว

    You are best laravel’s teacher on youtube. I have found a lot of tutorials but your is much more clear.

  • @JustinPhilip1
    @JustinPhilip1 3 ปีที่แล้ว

    This is crazy level of explaination, which i never understood before ! Atleast the very details of SC. Superb CoderTape

  • @pridifygaming1114
    @pridifygaming1114 4 ปีที่แล้ว

    Came in doubtful, but man, you won me over with your eloquent way of explaining things in an understanding and beginner-friendly way, with great ways of addressing things I was actually wondering about, and using real-world examples that made sense :)
    Definitely going to watch the rest of your videos! You didn't even pause or make a mistake, you were a natural at explaining things beautifully -- amazing!

  • @luizmeier
    @luizmeier 5 ปีที่แล้ว +11

    Really good video. I suppose e1 means episode 1.. so.. I'm waiting for more advanced concepts. Thanks in advance.

  • @punksolid
    @punksolid 5 ปีที่แล้ว +6

    Really cool, I already knew those concepts but I came here because there is really few advanced videos of laravel. And your explanation went right to the point and with near real use cases.
    Well done!

  • @teena1531
    @teena1531 5 ปีที่แล้ว +12

    Hey, thanks a lot.
    Best tutorial on Service Containers that I actually understood.
    I just subscribed! 😊

  • @Monochones87
    @Monochones87 4 ปีที่แล้ว

    So much information in just 23 mins. You're the man Victor, thanks for this!

  • @zlatagordenko1441
    @zlatagordenko1441 3 ปีที่แล้ว

    I was thinking how to implement several payment gateways in my project
    and then found your video ❤️ It's awesome. Thank you.

  • @erdincgc2
    @erdincgc2 4 ปีที่แล้ว

    Like all other commenters I am totally amazed by your explaining ability! Thank you so much for this quality. For the first time I understood the reflection method logic.

  • @amazeyou4671
    @amazeyou4671 4 ปีที่แล้ว

    I've been following the courses of yours by the beginning, but this one was something top of the course. I think you nailed it and you'll be there wherever you targeted. Thank you

  • @ibrahimyakut328
    @ibrahimyakut328 2 ปีที่แล้ว

    I never understood this concept until I watched this video. Oh my god everything is clear now. Thanks a lot sir.

  • @TheMariano55555
    @TheMariano55555 3 ปีที่แล้ว

    Wow, from now on this channel will be my Laravel Reference, this is one of the best laravel tutorials out there, thank u a lot for this master piece, I can't wait to finish the whole playlist 🙌

  • @md.imrulhasan8757
    @md.imrulhasan8757 4 ปีที่แล้ว

    Hey, Coder's Tape..... I always try to find my target course in your channel first. Because After watching a few videos of your I declared you as one of the top instructors on youtube. And you are really very talented guy. Hats off man,,, I wish you will upload more and more contents.

  • @businessaccount922
    @businessaccount922 5 ปีที่แล้ว +2

    Great Laravel 6(allready!) tutorial, you need at least 10x subscribers! Thanks

  • @zali64288
    @zali64288 4 ปีที่แล้ว

    You cleared my concept about View Composer. Thank you so much. I pray your chanel get more success

  • @melomancheto2761
    @melomancheto2761 5 ปีที่แล้ว +2

    I was struggling today at my work with the container and the singleton, but now I have it cleared out! Thanks a lot! Great and useable example with clean implementation !!

  • @rakeshshrestha6702
    @rakeshshrestha6702 5 ปีที่แล้ว

    Guys do subscribe him.. He knows what he is teaching in a simplier, better and efficient manner.

  • @ajithlal1688
    @ajithlal1688 4 ปีที่แล้ว +1

    Video you put on this channel are pretty informative. I've a small suggestion. If you can increase the font size or zoom in the screen while you are doing some stuff in phpstorm then, it will be easy to read and follow. I'm telling this because I'm always watching videos on my phone (5.5") it is very hard to read your code because it is very small. Hope may others facing the same. So if you can increase the font size or zoom in the screen while you are doing some stuffs in future videos it will be helpful.
    Thanks for making videos on advance topics ❤️

  • @rianzaman5716
    @rianzaman5716 5 ปีที่แล้ว

    Boi...... Tried to understand by reading the doc. Got lost IDK when..... Searched for it and found couple other, but this is the best one so far. Nice! . Clear example.

  • @survivalishisrevenge2511
    @survivalishisrevenge2511 5 ปีที่แล้ว +1

    3:35 Notice that dd() is WITHOUT '... vars: ' in Visual Studio Code. This is different from php storm.
    This video is already very useful as far as I came. This is a short notification and I will follow the rest of your course.

  • @brunofunnie
    @brunofunnie 3 ปีที่แล้ว

    Well that's a really real life example, how could someone possivly dislike this?!

  • @xavvey
    @xavvey 2 ปีที่แล้ว

    This is the best explanation with example I have come across about Service Containers in Laravel! I subscribed to your channel for any other usefull vids I need in the future!

  • @IntrinsicFlake
    @IntrinsicFlake 5 ปีที่แล้ว +1

    OMFG. I am grateful I stumbled upon your channel. I wish I had found it sooner xD You do an amazing job breaking down the steps. I appreciate it greatly and can't wait to watch your channel grow! Thank you!

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว

      Thanks! Please share the channel.

  • @namanpe
    @namanpe 5 ปีที่แล้ว +8

    Just for clarify, the functionality of containers shown in the video exist since version 5.

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว +1

      That’s correct.

  • @MDALAmin-ug2xs
    @MDALAmin-ug2xs 3 ปีที่แล้ว

    I have never watched any video that gave me that much of value. You are a true legend.

  • @edforrest9826
    @edforrest9826 5 ปีที่แล้ว

    This is a very good explanation. I know that I don't fully understand it yet but it was so clear and logical that when I get to an advanced enough level, it will really click.

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว +1

      I would suggest you setup a project and follow along. Then, you will have a playground to play in to try things out freely.

    • @edforrest9826
      @edforrest9826 5 ปีที่แล้ว

      @@CodersTape agreed. I think it's mainly that I have had a project that has called for a payment processor yet, and I can't imagine what else I would use this for. Could you tell us a couple more examples where this approach would be taken?

  • @SanderdeWijs
    @SanderdeWijs 5 ปีที่แล้ว +2

    Great video! Perhaps in another video you could elaborate on different ways to dynamically load the different implementations of an interface?

  • @raadkasem
    @raadkasem 2 ปีที่แล้ว

    I can't express how amazing are those videos, Thank you

  • @BlauDroid
    @BlauDroid 4 ปีที่แล้ว

    Such a great teacher. You explain things so easy. For me as a beginner in the whole MVC world, your tutorials help me a lot cuz they are so easy to understand. Thank you man!

  • @guilty_p01nt3r4
    @guilty_p01nt3r4 3 ปีที่แล้ว +5

    Really unbelievable explanation skill! Thank you so much for this ! :D

  • @rubenrafamercado2792
    @rubenrafamercado2792 3 ปีที่แล้ว

    Excellent !. You are my English and advanced PHP teacher. Double thanks :)

  • @innocentmazando3808
    @innocentmazando3808 4 ปีที่แล้ว

    Thanks a lot @CodersTape, just this video alone solved me a lot of perfomance issues i was having with a library i was building.
    You have an amazing taste in code buddy

  • @janpaulalmanoche6269
    @janpaulalmanoche6269 4 ปีที่แล้ว

    the explanation is so good than those paid courses, amazing work , cheers

  • @wahsher
    @wahsher 4 ปีที่แล้ว

    wow. Subscribed immediately after viewing this video. How didn't I find you before? Simply Great ! Amazing lesson. Going to watch all your videos.

  • @JATR1X
    @JATR1X 5 ปีที่แล้ว +7

    wow, the meaning behind the term "reflection" is a revelation

  • @usamazubair559
    @usamazubair559 4 ปีที่แล้ว

    Man you literally awesome, I have never commented any youtube video but this lecture makes me to appreciate your effort well done and Thank you for your hardwork

  • @Unclaimed3172
    @Unclaimed3172 4 ปีที่แล้ว

    Oh my god, videos like these are treasures. I admire your explanation skills and thank you for all the excellent uploaded videos.

  • @yungifez
    @yungifez 3 ปีที่แล้ว +1

    This video is old but it is still very relevant and useful
    Very good explanation of O on SOLID

  • @VikramBhaskaran
    @VikramBhaskaran 5 ปีที่แล้ว +4

    Amazing I appreciate the depth of your understanding of Laravel concepts

  • @chidieberechukwudi9077
    @chidieberechukwudi9077 4 ปีที่แล้ว

    You really make this laravel framework easy to learn. I think taylor (the creator of laravel) should feature you one day. Kudos I really love the way you explain things.

  • @anupamanand2163
    @anupamanand2163 3 ปีที่แล้ว

    hey I am spending a full day but still not able to figure it out what the service container is . but your video is really amazing understand all stuffs in just minutes. hat's off to you.

  • @HazerGore1185
    @HazerGore1185 3 ปีที่แล้ว

    First video I’ve seen that actually clearly explains Service Containers. Even better than how Jeff explains it on the Laravel 8 From Scratch series on Laracasts. I’ll definitely be watching the rest of the videos in this series now even if it’s Laravel 6. Most of the concepts should be the same in Laravel 8

  • @GeertHeremans
    @GeertHeremans 3 ปีที่แล้ว

    What a clear explanation of this difficult subject. Job very well done sir!

  • @VadimBesedin
    @VadimBesedin 5 ปีที่แล้ว +5

    You are fast! Thank you for another great video!

  • @muhammadarslanafzal9681
    @muhammadarslanafzal9681 4 ปีที่แล้ว

    Amazing clarity level 100%

  • @vishnurajoria5180
    @vishnurajoria5180 5 ปีที่แล้ว

    Best video on service container.Easy to understand..TOTALLY LOVED IT!

  • @Luukth
    @Luukth 4 ปีที่แล้ว

    Awesome video Your way of explaining this subject with great examples is simply amazing.

  • @Murph709
    @Murph709 2 ปีที่แล้ว

    This is good stuff! thanks! I'll have to watch your whole series!

  • @RohanKamble
    @RohanKamble 2 ปีที่แล้ว

    Beautifully explained, landing on this video and the concept is clear now, Thanks a lot bro....keep up the amazing work bro....👍

  • @WernAncheta
    @WernAncheta 3 ปีที่แล้ว

    thank you so much for this Victor! service containers makes a lot of sense now.

  • @grimmjowjaggerjack6248
    @grimmjowjaggerjack6248 3 ปีที่แล้ว

    this could be best service container tutorial in laravel

  • @KeyserEngelberthAbarca
    @KeyserEngelberthAbarca 5 ปีที่แล้ว

    Excellent in The Open/Closed Principle explanation, keep on the great job Victor!

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว +1

      Fancy programmer terms! :)

    • @thamerbelfkih6593
      @thamerbelfkih6593 5 ปีที่แล้ว

      Actually, it's the strategy design pattern, payment with different strategies, thanks for the video!

  • @tobiaswe5483
    @tobiaswe5483 4 ปีที่แล้ว

    this channel is so incredibly valueable. Thanks a lot!

  • @Lakmalniranga
    @Lakmalniranga 3 ปีที่แล้ว

    Oh man, this is a gold mine.

  • @mrbrush4994
    @mrbrush4994 5 ปีที่แล้ว

    actually i looking for a way how to avoid using like $orders = new order() and how to avoid dependency injection, after i saw this i think this is what i looking for and this is the most cleanest way to call a function in other models, i will try this now! thanks!

  • @joincoder
    @joincoder 3 ปีที่แล้ว

    Yes this is the journey of advanced

  • @MASIAInstitute
    @MASIAInstitute 5 ปีที่แล้ว

    it simply a WoW tutorial. it clears more then it says. specially the concept of Interfaces and Encapsulation.

  • @SeanCarrington
    @SeanCarrington 4 ปีที่แล้ว

    Did I just find Jeffrey's Way brother from another mother ? You got us Laracast for free up in here ! Many MANY thanks to you

  • @yschin5663
    @yschin5663 5 ปีที่แล้ว +1

    Recommended to watch, really great video! Not only for service container, the others explanation is great as well.

    • @feranmiafrica9528
      @feranmiafrica9528 4 ปีที่แล้ว

      Great vids.. in real work if I'm using something like stripe can I write code like this to charge.. or it's only applicable if I'm building my own payment system from scratch

  • @rajeshchauhan657
    @rajeshchauhan657 4 ปีที่แล้ว +1

    wow sir,your knowledge is amazing

  • @atmanx5
    @atmanx5 4 ปีที่แล้ว

    Wow, you do an AMAZING job explaining this. Hats off to you sir!

  • @kaiserhamid9652
    @kaiserhamid9652 ปีที่แล้ว

    Amazing explanation of such a confusing topic. Thanks for sharing your knowledge. Take ❤

  • @emekatimothyiloba699
    @emekatimothyiloba699 ปีที่แล้ว

    Best Explanation i have seen so far

  • @IngPedroAraujo
    @IngPedroAraujo 5 ปีที่แล้ว +2

    Great tutorial for a rookie like me. Thanks for sharing your knowledge.
    One question, What about if I want to set several currency?, not just 'USD'.

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว

      One idea would be to set that at runtime. Make that customizable like the amount.

    • @POLESTREET
      @POLESTREET 4 ปีที่แล้ว

      @@CodersTape but how to make it customizable inside the appServiceProvider?

    • @POLESTREET
      @POLESTREET 4 ปีที่แล้ว

      @@CodersTape Or should I put it inside my controller without using the appserviceprovider?

    • @pedro-j
      @pedro-j 4 ปีที่แล้ว +1

      For example, in a simple way, similar to the used for passing the "credit" on the navigation bar, you can pass the currency parameter also, for example to establish the EURO currency:
      localhost:8000/pay?credit=true¤cy=EUR
      Then, in the register() method of the AppServiceProvider.php file:
      $this->app->singleton(PaymentGatewayContract::class, function($app) {
      $currency = 'USD';
      if(request()->has('currency')) {
      $currency = request('currency');
      }
      if(request()->has('credit')) {
      dump(request('credit'));
      return new CreditPaymentGateway( $currency );
      }
      return new BankPaymentGateway( $currency );
      });
      If the currency is not pass as parameter, the default value will be apply ('USD').

  • @VadimBesedin
    @VadimBesedin 4 ปีที่แล้ว

    Amazingly explained! Thank you so much for sharing your knowledge and experience!

  • @jaschagerles1597
    @jaschagerles1597 4 ปีที่แล้ว +1

    Thanks for this series I am looking forward to watch. Loved the explanation. Theres just one detail I am not sure about in 21:53: Shuld a SP really know about how the request is set up? For me this knowledge only belongs to a Controller.

    • @CodersTape
      @CodersTape  4 ปีที่แล้ว

      I don't necessarily agree with that hard line, I think other parts of your application can have the knowledge of the request if necessary.

  • @hypergavs12
    @hypergavs12 4 ปีที่แล้ว

    Awesome! Now it's getting clear to me how to use singleton and interface(adapter) design pattern too. Keep it up! I'll be waiting for your next videos.

  • @瑞文-g9f
    @瑞文-g9f 5 ปีที่แล้ว +2

    Amazing Explanation, the final looks like strategy pattern in oo

  • @kedotdev
    @kedotdev 2 ปีที่แล้ว

    Thanks Victor. It looks like you've covered a lot over the years. It's a shame I'm finding you just now!

  • @a.t.4628
    @a.t.4628 5 ปีที่แล้ว

    Thanks a lot for the amazing courses. I've been following through them since a couple of weeks ago and I'm excited to learn Laravel in depth.

  • @mohammadghahary4379
    @mohammadghahary4379 2 ปีที่แล้ว

    really like the way you explain this concept

  • @mrarsenal10vn
    @mrarsenal10vn 4 ปีที่แล้ว

    The best explain about Service Container that I ever heard
    Awesome

  • @tonitabak
    @tonitabak 5 ปีที่แล้ว +6

    Your are making my future better, Thank you!!!

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว +3

      That’s the goal. Thanks for sharing.

  • @lautarolopez5372
    @lautarolopez5372 5 ปีที่แล้ว

    literally the best explanation I saw, among dozens

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว

      Awesome, thanks!

  • @rawnato
    @rawnato 5 ปีที่แล้ว +7

    Great! The service container of Laravel 6 it is the same of 5? I ask this because I can do this in Laravel 5

    • @richardlr23
      @richardlr23 5 ปีที่แล้ว

      I thought the same thing as well, I usually do this with models instead of classes. Maybe class typing is something new in 6?

    • @rawnato
      @rawnato 5 ปีที่แล้ว +1

      @@richardlr23 This is older than L6, I use this with Repositories, Requests, Services and wharever you want (Class) in Laravel 5

  • @jigarjoshi6329
    @jigarjoshi6329 4 ปีที่แล้ว

    thank you very much
    you teach really great
    everything is clear and the way you explain things is magic
    thank you again

  • @luispaulodasilvaferreira665
    @luispaulodasilvaferreira665 4 ปีที่แล้ว

    I don't know if I already said that, but those videos are amazing

  • @yevhengryshko7694
    @yevhengryshko7694 5 ปีที่แล้ว +1

    Perfect example from scratch!
    THANK YOU!!!

  • @mehrshaddarvish2762
    @mehrshaddarvish2762 4 ปีที่แล้ว +1

    Hi
    at first I want to say Thanks for your online courses ;) there are really awesome.
    secondly, I have a question , what if I want to get currency type from $request and set it in AppServiceProvider?
    your prompt answer is highly recommend.
    thank you again for your precious videos.

  • @marysmile8245
    @marysmile8245 4 ปีที่แล้ว

    Thanks for your videos! greetings from Argentina!

  • @ishortsclips
    @ishortsclips 5 ปีที่แล้ว

    Bookmarking it to keep a track whenever I encounter problem that could be solved by this.

  • @sumitwadhwa8823
    @sumitwadhwa8823 5 ปีที่แล้ว

    DUDE. THAT WAS PRETTY AMAZING. THANKS FOR PUTTING IT UP. YOU'RE THE BEST.

  • @stevebauman
    @stevebauman 5 ปีที่แล้ว

    Wow you’re an amazing teacher!! I love the style, subscribed! Honestly you’re up there right beside Jeffrey Way imo!

    • @CodersTape
      @CodersTape  5 ปีที่แล้ว

      I have nothing but the upmost respect for Jeffrey and all that he does. Thanks for the compliment.