~/talk

Advanced Laravel: Avoid unified data models

Talkat Dutch PHP Conference 2018 · 2018-06-07..06-09· [php, databases]
links:none on file
slides:none on file

Argues against one giant User model and shows a working Laravel conference app that splits responsibilities into feature-scoped Eloquent models (auth, speaker, organizer, submitted_talks) and wires them with Laravel events; submit action emits a talk submitted event and listeners map that payload into a separate approval table. Demonstrates actual migrations, controllers, event classes and listeners, builds four features end-to-end, and shows the approach reduces coupling and lets features be removed or changed without breaking the whole system — app fully functioning with source available.

AI-written summary · about

  1. 0:00Start
  2. 2:49Conceptual Model
  3. 4:46Relational Data Model
  4. 5:29Hierarchical Data Model
  5. 6:41Database Tables
  6. 6:58Object Model
  7. 7:30Eloquent is ActiveRecord
  8. 7:59Eloquent is Relational
  9. 8:18Schema Leakage
  10. 14:21Mappings are Boundaries
  11. 14:43Isolate Leakage at ORM Model
  12. 19:44Objects have Fields
  13. 20:01Objects have Methods
  14. 21:34How does it work?
  15. 22:26Scope Reduction through Boundaries
  16. 27:16Consequences
  17. 28:49Auth Implementation
  18. 30:02Feature Summary
  19. 30:28Talk Submission Implementation
  20. 33:13Talk Approval Implementation
~/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.