jqh 5 년 전
부모
커밋
bdb9514a09
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      src/Support/Helper.php

+ 5 - 5
src/Support/Helper.php

@@ -109,16 +109,16 @@ class Helper
             return $value;
         }
 
-        if ($value instanceof Grid) {
-            return (string) $value->render();
-        }
-
         if ($value instanceof \Closure) {
-            $newThis && $value = $value->bindTo($newThis);
+            $newThis && ($value = $value->bindTo($newThis));
 
             $value = $value(...(array) $params);
         }
 
+        if ($value instanceof Grid) {
+            return (string) $value->render();
+        }
+
         if ($value instanceof Renderable) {
             return (string) $value->render();
         }