Castuner
English
English Català Español Euskara Galego Português Français Italiano Deutsch Polski Русский Svenska
No Compromises

Changing your mind about when() and unless() in Eloquent

Aug 2, 2025 11:02

Audio file

Aaron admits he used to wrap every query in plain old if-statements—until Laravel’s when()/unless() helpers (and arrow functions) won him over. He and Joel compare their journeys, debate readability trade-offs, and share guidelines for deciding which style to use. Along the way they discuss false assumptions, evolving “code grammar,” and how tools such as Rector can automate the switch.

(00:00)…

88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108

Every podcast with a public feed, played straight from the people who make it.

Browse

All podcasts Submit a podcast

Castuner

About CastunerPrivacyTerms

Language

English Català Español Euskara Galego Português Français Italiano Deutsch Polski Русский Svenska

© 2026 All Tuner Labs · Made with ❤️ in Poblenou, Barcelona

0:00 0:00