~/talk

Learn the Laravel Service Container

Talkat Laracon Online Winter 2021 · on Wednesday, 2021-03-17· [laravel]
slides:none on file

Starts from a broken checkout and builds a minimal Stripe payment provider, then shows stepwise refactors: constructor injection, letting Laravel auto-resolving create nested dependencies, and finally explicit bindings in AppServiceProvider to supply a string config like currency. Adds a PaymentContract interface so swapping to Paddle requires only one line in the provider. Demonstrates testing by storing fake instances in tests via the container and replaces Laravel’s MailManager with a custom class to set Postmark stream headers. All examples run live and work end to end.

AI-written summary · about

  1. 0:00Titan consultancy intro
  2. 4:29Technical issues and greeting
  3. 5:32Speaker introduction
  4. 7:33Introduction to service container
  5. 10:03Creating dependencies manually
  6. 15:44Constructor injection issues
  7. 20:16Auto-resolving dependencies
  8. 23:23Explicit container binding
  9. 26:17Binding to interfaces
  10. 29:04Real-world binding examples
  11. 33:05Inversion of control summary
  12. 35:27Facades and fakes
  13. 39:00Testing with service container
  14. 44:09Extending core framework code
  15. 48:55Conclusion and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.