تماشای این درس نیاز به اشتراک حرفه‌ای دارد.

The Null Object Pattern is a pattern that helps get rid of conditional code by making use of null objects with no operations. In this Larabit, we'll take a look at a handful of examples that illustrate how this might improve and clean up our code.

Null Object Pattern using relationships in LaravelNull Object Pattern using plain PHP classes

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