Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The final Laravel Service Container talk (Larac...

The final Laravel Service Container talk (Laracon Online)

Laravel's service container is one of the most challenging aspects of the framework. I know, because I have been there too. It just didn't click with me for a very long time.

It's a little funny because, at its core, the concept and implementation of a service container are relatively simple compared to other parts of the framework. Yeah, Eloquent, I'm talking about you!

We always talk about the concept, theory, and HOW to use the service container, but that's where I see the issue. It's time to include the WHEN and WHY in the discussion.

My humble goal with this talk is to make it the final service container tutorial you will need!

Christoph Rumpel

March 17, 2021
Tweet

More Decks by Christoph Rumpel

Other Decks in Technology

Transcript

  1. THE SERVICE CONTAINER Binding Making Resolving Dependency Injection Inversion Of

    Control IOC Container Providers Singleton Auto-Resolving Facades Interface Binding Context Binding PSR-11 !
  2. WHY WE NEED THE SERVICE CONTAINER Better dependency handling Less

    responsibilities No duplicated code Change the control flow
  3. WHY WE NEED THE SERVICE CONTAINER Better dependencies handling Less

    responsibilities No duplicated code Change the control flow
  4. Resources The Best Introduction To Laravel's Service Container https://bit.ly/3triBqS The

    Service Container, with Christoph Rumpel & Matt Stauffer https://bit.ly/3eIcsT8 4 Ways The Laravel Service Container Helps Us Managing Our Dependencies https://bit.ly/3eOjCFi Mastering The Illuminate Container https://bit.ly/38NAAjr Service Container Fundamentals https://bit.ly/38P1JT4