Search a title or topic

Over 20 million podcasts, powered by 

Player FM logo
Artwork

Content provided by Joel Clermont and Aaron Saray. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Joel Clermont and Aaron Saray or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://podcastplayer.com/legal.
Player FM - Podcast App
Go offline with the Player FM app!

Move that logic out of your view

10:16
 
Share
 

Manage episode 399472125 series 2974897
Content provided by Joel Clermont and Aaron Saray. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Joel Clermont and Aaron Saray or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://podcastplayer.com/legal.

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
  continue reading

128 episodes

Artwork

Move that logic out of your view

No Compromises

18 subscribers

published

iconShare
 
Manage episode 399472125 series 2974897
Content provided by Joel Clermont and Aaron Saray. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Joel Clermont and Aaron Saray or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://podcastplayer.com/legal.

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
  continue reading

128 episodes

Alle afleveringen

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Copyright 2025 | Privacy Policy | Terms of Service | | Copyright
Listen to this show while you explore
Play