wangzq 2 năm trước cách đây
mục cha
commit
bb3ffbd9ba
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      app/Libs/Helpers.php

+ 4 - 1
app/Libs/Helpers.php

@@ -1056,7 +1056,10 @@ if (!function_exists('is_empty')){
     function is_empty($data): bool
     {
         if (is_object($data)){
-            \Log::info(' is_empty:'.json_encode(get_object_vars($data)).var_export($data,true));
+            if (method_exists($data,'isEmpty')){
+                return  $data->isEmpty();
+            }
+
             return empty(get_object_vars($data));
         }