ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Should you use DTOs in Laravel?

Автор: Mastering Laravel

Загружено: 2025-09-26

Просмотров: 1083

Описание: DTOs (Data Transfer Objects) aren't mentioned anywhere in the Laravel docs, but some devs use them heavily in their applications, whereas other devs never use them at all.

In the latest episode of the No Compromises podcast, we weigh the pros and cons of DTOs in everyday Laravel apps, comparing them to form requests, PHPDoc-typed arrays, and service-layer boundaries, and share one area where DTOs truly shine.

The takeaway: keep DTOs in the toolbox, but reach for them intentionally, not by habit.

00:00 Framing DTOs in a stricter PHP world
01:15 Our current practice: hybrids, few true DTOs
02:45 Form requests, `safe()`, and typed inputs
03:45 Reuse across API and form layers rarely aligns
04:30 Where DTOs shine: normalizing multiple APIs
05:45 Service boundaries: wrapping vendor objects (e.g., Stripe)
06:15 PHPDoc-typed arrays vs DTO overhead
06:45 Conventions, Larastan levels, and avoiding ceremony
07:45 Treat DTOs as a tool, not a rule
09:15 Silly bit

Subscribe at https://show.nocompromises.io

Sign up for our newsletter at https://masteringlaravel.io

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Should you use DTOs in Laravel?

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Что может быть хуже, чем отсутствие тестов?

Что может быть хуже, чем отсутствие тестов?

Гренландия вместо Украины

Гренландия вместо Украины

Sulfur Learns Rust #2 Data Types And Variables

Sulfur Learns Rust #2 Data Types And Variables

Laravel + Service Pattern + DTOs = ❤️❤️❤️

Laravel + Service Pattern + DTOs = ❤️❤️❤️

Should You Learn Laravel Before PHP?

Should You Learn Laravel Before PHP?

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Священная ВОЙНА редакторов кода - Vim против Emacs

Священная ВОЙНА редакторов кода - Vim против Emacs

Unlocking the Power of Form Requests in Laravel

Unlocking the Power of Form Requests in Laravel

Why use DTOs (Data Transfer Objects)?

Why use DTOs (Data Transfer Objects)?

Тренды в ИИ 2026. К чему готовиться каждому.

Тренды в ИИ 2026. К чему готовиться каждому.

What Are Laravel Facades and How Do They Work? | Learn Laravel The Right Way

What Are Laravel Facades and How Do They Work? | Learn Laravel The Right Way

Для Чего РЕАЛЬНО Нужен был ГОРБ Boeing 747?

Для Чего РЕАЛЬНО Нужен был ГОРБ Boeing 747?

5 главных ошибок при миграции БД Laravel

5 главных ошибок при миграции БД Laravel

DTO в Laravel: пример корзины заказов

DTO в Laravel: пример корзины заказов

How to Boost Your Laravel App in Minutes

How to Boost Your Laravel App in Minutes

DTO Design Pattern in Laravel  | Practical Example

DTO Design Pattern in Laravel | Practical Example

Что происходит в Чечне и что это говорит о будущем России (English subtitles)

Что происходит в Чечне и что это говорит о будущем России (English subtitles)

Laravel Data Example: DTO Re-Used in Controllers/Actions/Jobs/Tests

Laravel Data Example: DTO Re-Used in Controllers/Actions/Jobs/Tests

Laravel Actions: The Secret Sauce

Laravel Actions: The Secret Sauce

Laravel Just Destroyed Your... N+1 Problem

Laravel Just Destroyed Your... N+1 Problem

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]