{"podcast":{"title":"No Compromises","slug":"no-compromises-1309932","podcast_index_feed_id":1309932,"rss_url":"https://feeds.transistor.fm/no-compromises","website_url":"https://show.nocompromises.io","image_url":"https://img.transistorcdn.com/z6cTh6hcjDJiOBZWkONVdabUkSvSMha6ir6ZU7zqiNs/rs:fill:0:0:1/w:1400/h:1400/q:60/mb:500000/aHR0cHM6Ly9pbWct/dXBsb2FkLXByb2R1/Y3Rpb24udHJhbnNp/c3Rvci5mbS9zaG93/LzIzMDM3LzE2Mjc1/MjExMTAtYXJ0d29y/ay5qcGc.jpg","author":"Joel Clermont and Aaron Saray","episode_count":157,"summary":"Two seasoned salty programming veterans talk best practices based on years of working with Laravel SaaS teams.","last_synced_at":"2026-07-19T04:20:23.931944+00:00","page_url":"https://stenobird.com/podcast/no-compromises-1309932"},"episode":{"title":"Changing your mind about when() and unless() in Eloquent","slug":"changing-your-mind-about-when-and-unless-in-eloquent","published_at":"2025-08-02T05:00:00+00:00","page_url":"https://stenobird.com/podcast/no-compromises-1309932/changing-your-mind-about-when-and-unless-in-eloquent","show_page_url":"https://stenobird.com/podcast/no-compromises-1309932","url":"https://share.transistor.fm/s/664d231e","audio_url":"https://media.transistor.fm/664d231e/c3bda97b.mp3","summary":"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) - Intro – refining long-held opinions (00:45) - Aaron’s original “query-then-if” pattern (01:45) - Why when() first felt clumsy (closures, scopes, extra params) (03:45) - Arrow functions &amp; smaller conditions make when() nicer (05:00) - Joel’s lingering objection: avoiding unless() for readability (06:45) - Seeing the same helper everywhere changes minds (08:30) - Takeaways – keep revisiting old habits as Laravel evolves (09:30) - Silly bit Want help learning how to more quickly refactor and standardize your app with Rector?","meta_description":"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 Joe…","key_points":[],"chapters":[],"topics":[],"duration_seconds":662,"processing_state":"not_requested","actions":[{"name":"request_transcript","method":"POST","url":"https://stenobird.com/v1/public/podcasts/no-compromises-1309932/episodes/changing-your-mind-about-when-and-unless-in-eloquent/transcription-requests","description":"Idempotently request low-priority transcript generation for this episode."},{"name":"read_markdown","method":"GET","url":"https://stenobird.com/podcast/no-compromises-1309932/changing-your-mind-about-when-and-unless-in-eloquent.md","description":"Read the agent-friendly Markdown representation of this episode resource."}]}}