~/talk

Laravel Factories Reloaded

Talkat Laracon Online Winter 2020 · on Wednesday, 2020-02-26· [laravel, testing]
slides:none on file

Demo recipe platform uses real models (users, recipes, categories, contests) and three concrete tests: published flag, owner access, and sending contest report. Tests create the data via Laravel factories and a new package that generates class-based factories with chainable APIs like with() and times(). The demo builds contest data (owner, category, 10 participants, each with 3 recipes), calls a preparedForReport flow, and shows all tests passing using notification fakes — implementation and package work end to end.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:05About the speaker and talk
  3. 3:34Demo app overview
  4. 5:01Introduction to model factories
  5. 8:55Writing first test with factories
  6. 13:11Testing unpublished recipes access
  7. 16:41Testing contest report notifications
  8. 25:29Issues with default factory approach
  9. 31:07Class-based factories introduction
  10. 39:15Building custom factory classes
  11. 41:46Implementing user factory
  12. 45:19Refactoring contest test
  13. 54:50Advantages of class-based factories
  14. 56:36Summary and closing remarks
~/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.