Move that logic out of your view episode artwork

EPISODE · Feb 6, 2024 · 10 MIN

Move that logic out of your view

from No Compromises · host Joel Clermont and Aaron Saray

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

Episode metadata supplied by the publisher feed · Published Feb 6, 2024

Embed this episode

NOW PLAYING

Move that logic out of your view

0:00 10:16

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of No Compromises?

This episode is 10 minutes long.

When was this No Compromises episode published?

This episode was published on February 6, 2024.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this No Compromises episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!