~/talk

Beyond Controllers in Laravel: Finding the Right Place for Logic

TalkinTurkishat PHPKonf 2023 · on Saturday, 2023-09-02· [php, software-architecture]
links:none on file
slides:none on file

Examines where to place application logic in Laravel projects, comparing controllers with alternative locations such as services, actions, jobs, and form requests. Discusses structuring code to keep controllers thin by moving responsibilities into appropriate classes and Laravel features to organize business logic.

AI-written summary · about

  1. 0:00Introduction
  2. 3:17Monolithic controller problems
  3. 7:13Route model binding
  4. 10:06Logic in action classes
  5. 12:52Events after updates
  6. 15:18Observers and accessors
  7. 17:22Scopes and resources
  8. 18:48Helpers and value objects
  9. 20:32Traits and abstract classes
  10. 21:36Package development benefits
  11. 22:41Repository pattern misuse
  12. 23:02Refactoring principles
  13. 24:26Staying updated
~/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.