Deep Dive into the Service Container

2 hour webinar by Bobby Bouwmann

  • Wednesday 20 Jan

    10:00–12:00 CET

    20 Max Capacity

About this Webinar

The Laravel service container lies at the heart of the Laravel framework and software developed with it. It provides access to important framework and library features as well as reduces clutter and complexity. Due to its importance, mastering the service container is critical to obtaining your Laravel Certification. In this 2 hour webinar you’ll learn everything about the Laravel service container.

What You Will Learn

  • Basic explanation of dependency injection
      • Example with injecting a class in the controller
      • Example with injection a class that has dependencies in a controller
      • Mention reflection API and service container
      • Example will be a very simple controller that injects a repository
  • Basic explanation of the service container
      • What is the service container?
      • What does the service container?
      • How to retrieve a class from the service provider
  • Basic explanation of component bootstrapping
      • Using a service provider to register a class with arguments in the container
      • Using a service provider to register a class with multiple arguments and sub dependencies
      • Using a service provider to register a class using config files or hardcoded values
  • Facades
      • Create a facade for the created classes from before
      • Register the facade using string or class based approach
      • Using the facade instead of dependency injection
  • Diving deeper
      • Go over some specific code of the application container class
      • Explain Reflection API
  • Extending
      • Use contextual binding for one of the created services classes
      • Example by using a controller that received an interface with multiple implementations
      • Extend one of the implementations by using app()->extend()
  • Packages
      • A package is nothing more than a service provider that provides a certain service (classes)
      • Move our created classes out of the code base and into a package structure with it’s own service provider
      • Register the service provider
      • Extend the package by using the container again
In order to participate in this webinar you'll need a high-speed internet connection, experiencing building web-applications with Laravel, and English language fluency.

About Bobby Bouwmann

Bobby Bouwmann is a top Laracasts contributor and an expert on the Laravel Framework. He is an experience workshop instructor and has spoken at dozens of international meetups and conferences including many presentations at the official Laracon and Laracon EU conferences. As one of the most active and respected members of the Laravel community he is uniquely qualified to guide you through the inner depths of Laravel's features and application development with Laravel.

2 hour webinar by Bobby Bouwmann

Deep Dive into the Service Container

  • Wednesday 20 Jan

    10:00–12:00 CET

    20 Max Capacity

€120 Reserve Seat

Excl. 21% VAT