Show notes are at https://stevelitchfield.com/sshow/chat.html
…
continue reading
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://player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!
Go offline with the Player FM app!
Move that logic out of your view
MP3•Episode home
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://player.fm/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
108 episodes
MP3•Episode home
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://player.fm/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
108 episodes
Kaikki jaksot
×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.