10 мин.

Move that logic out of your view No Compromises

    • Технологии

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

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

10 мин.

Топ подкастов в категории «Технологии»

Podlodka Podcast
Егор Толстой, Стас Цыганов, Екатерина Петрова и Евгений Кателла
Swift Package Indexing
Dave Verwer and Sven A. Schmidt
Запуск завтра
libo/libo
Продакты продуктов
Никита и Дима
Плюс-минус игры
Кинопоиск
Lex Fridman Podcast
Lex Fridman