~/talk

Laravel Design Patterns

Talkat Laracon EU 2018 · on Friday, 2018-08-31· [php, developer-experience]

Covers four concrete patterns with PHP and Laravel code: Factory for views and validators, Builder/Manager showing createDriver/createXDriver behavior used by Mail and Hasher, Strategy via translation loaders (switching to an array loader to speed tests), and Provider via package service providers like Debugbar. Digs into framework source, shows the exact methods and config switches, and demonstrates working examples and when each pattern actually simplifies swapping implementations.

AI-written summary · about

  1. 0:00Intro
  2. 1:52Laravel Design Patterns
  3. 2:28Daily Design Patterns
  4. 2:54What are Design Patterns?
  5. 3:14Design Patterns are ... Recipes for building maintainable code
  6. 3:38Be your own Chef Using the boundaries of Design Pattern
  7. 4:09Why use Design Patterns?
  8. 6:57Design Pattern Time
  9. 7:10Creational Patterns - Class instantiation - Hiding the creation logic – Examples Factory, Builder, Prototype Singleton
  10. 7:30Structural Patterns - Composition between objects -Usages of interfaces, abstract classes – Examples: Adapter Bridge, Decorator, Facade, Proxy
  11. 7:57Design Patterns in Laravel
  12. 10:34Factory Pattern Example
  13. 11:07Factory Pattern Laravel Example
  14. 13:26Builder (Manager) Pattern
  15. 15:45Builder Pattern Example
  16. 18:16Builder Pattern Laravel
  17. 27:34Strategy Pattern Laravel Example
  18. 31:17Provider Pattern Sets a pattern for providing some essential service
  19. 31:54Provider Pattern Example class DominosServiceProvider extends ServiceProvider public function register()
  20. 34:00Provider Pattern Laravel Example
  21. 34:59Factory Pattern Recap Factory translates interface to an instance
  22. 35:19Builder Pattern Recap Builder Pattern can do the configuration for a new object without passing this configuration to that object
  23. 35:45Strategy Pattern Recap Strategy pattern provides one place where the correct strategy (algorithm) is called
  24. 36:25Provider Pattern Recap Provider Pattern let you extend the framework by registering new classes in the container
  25. 37:42Want to learn more?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.