مشاهده همه دوره‌ها
Techniquesحرفه‌ای20 قسمت

کد هیولاگونه را مرتب کن

Whip Monstrous Code Into Shape

You did your best, but somehow that User object, over time, morphed into a monstrous God object. And your controllers started out nice and clean, but now... not so much.

We've all been there. In this series, we'll review a number of ideas for whipping convoluted code into shape.

قسمت‌های دوره

از شیءهای فرم استفاده کنید

19m 39s

Learn how form objects manage validation, authorization, and persistence. Build one from scratch and explore Laravel’s form request classes.

از کیس‌های استفاده (Use Cases) استفاده کنید

13m 11s

Explore how applying use case thinking directly in code can clarify user interactions and improve your system’s design and functionality.

از رویدادهای دامنه استفاده کنید

16m 18s

Explore how using domain events and listeners can help you build complex, maintainable functionality in your application with ease.

تمیز کردن شیء خداگونه ۱: عبوردهی (Pass-Through)

4m 45s

Tame your God User object by extracting related methods into dedicated objects. Learn pass-through techniques for cleaner, maintainable code.

تمیز کردن شیء خداگونه ۲: تریت‌ها و جوراب‌ها

7m 59s

Clean up bulky God objects by extracting traits. Learn how organizing code like sorting socks leads to cleaner, more maintainable classes.

تمیز کردن شیء خداگونه ۳: اشیای مقداری (Value Objects)

9m 19s

Clean up messy classes by extracting value objects wisely. Learn when and how to refactor for cleaner, maintainable code in this Laracasts lesson.

از سیاست‌ها (Policies) استفاده کنید

16m 32s

Simplify complex authorization by using policy objects in Laravel—reuse named logic for cleaner, more maintainable controller code.

تقسیم وظایف به مراحل را در نظر بگیرید

11m 31s

Learn how to break complex tasks into manageable steps by extracting each into its own class for cleaner, more maintainable code.

استراتژی‌سازی را در نظر بگیرید

12m 29s

Discover how to simplify complex conditional logic using strategies for cleaner, more maintainable code in real-world Laravel applications.

نرمال‌سازی را در نظر بگیرید

15m 29s

Learn how to clean up messy code by normalizing values with smart refactors, extracting logic for clearer, maintainable, and flexible workflows.

از مدل‌های نمایش (View Models) استفاده کنید

11m 5s

Learn how to simplify repeated view logic by creating reusable view models in this friendly, practical Laracasts tutorial!

پارامترهای زیاد متد نشانه‌ای است

8m 52s

Learn why methods with many parameters signal a design issue and how to spot opportunities for cleaner, smarter code in this friendly Laracasts lesson!

تزیین (Decorating) را در نظر بگیرید

9m 4s

Learn how to clean up code by adding dynamic behavior with decorators in this easy, friendly Laracasts tutorial—boost your coding skills today!

اینترفیس‌های روان (Fluent) را در نظر بگیرید

10m 3s

Discover the power of fluent interfaces with clear examples and practical tips in this friendly, engaging Laracasts tutorial!

بازنویسی عملی

18m 18s

Apply proven refactoring techniques to real code in this hands-on Laracasts lesson—boost your skills with practical, friendly guidance!

پایبندی به هفت متد منبع‌دار

14m 42s

Keep your Laravel controllers clean and efficient! Learn how to split bloated resourceful controllers into focused, manageable ones.

از اشیای کوئری (Query Objects) استفاده کنید

4m 12s

Simplify complex Eloquent queries by using query objects—keep controllers clean and your Laravel code organized with easy, reusable classes.

بازنویسی ویوهای خود را در نظر بگیرید

12m 49s

Refactor your views like PHP classes—learn clean, organized template techniques to improve readability and maintainability in your projects.

یک کلاس کاربر مهمان در نظر بگیرید

9m 3s

Simplify user checks in your views by creating a Guest User class—clean up your code and handle signed-in logic with ease.

جمع‌بندی را در نظر بگیرید

8m

Learn to wrap API JSON responses in simple POPO classes to cleanly add behavior and formatting—keep your views and helpers tidy.

یادگیری را ادامه دهید

تصویر بندانگشتی چگونه انجام دهم؟
چگونه انجام دهم؟

با Jeffrey Way

  • 25 قسمت
  • متوسط
  • Techniques
تصویر بندانگشتی چگونه اپ‌های خط فرمان بسازیم
چگونه اپ‌های خط فرمان بسازیم

با Jeffrey Way

  • 6 قسمت
  • متوسط
  • Techniques
تصویر بندانگشتی چگونه در پروژه‌های متن‌باز مشارکت کنیم
چگونه در پروژه‌های متن‌باز مشارکت کنیم

با Luke Downing

  • 13 قسمت
  • متوسط
  • Techniques
تصویر بندانگشتی قطعه‌های Laracasts
قطعه‌های Laracasts

با Jeffrey Way

  • 10 قسمت
  • تازه‌کار
  • Techniques
تصویر بندانگشتی درک قابلیت‌های Context در Laravel
درک قابلیت‌های Context در Laravel

با Jeremy McPeak

  • 6 قسمت
  • متوسط
  • Techniques

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟