← Previous · All Episodes · Next →
Move that logic out of your view Episode 93

Move that logic out of your view

· 10:16

|
Ever feel like your Blade views are getting too logic-heavy? What logic belongs in the view, and what logic would be better somewhere else? We use a recent PR discussion to talk through these points.

  • (00:00) - Trying to keep logic out of the Blade view
  • (02:00) - Using the simplest form of logic
  • (03:45) - Business logic doesn't belong in the view layer
  • (04:15) - Condition moved into the controller
  • (05:20) - Secondary benefit of testing

Check out the Mastering Laravel YouTube channel

View episode transcript


Creators and Guests


Subscribe

Listen to No Compromises using one of many popular podcasting apps or directories.

Apple Podcasts Spotify Overcast Pocket Casts Amazon Music
← Previous · All Episodes · Next →