소스 검색

修复Show无法显示关联模型字段值问题

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

+ 1 - 1
src/Show/Field.php

@@ -533,7 +533,7 @@ HTML;
      */
     public function fill(Fluent $model)
     {
-        $this->value($model->get($this->name));
+        $this->value(Arr::get($model->toArray(), $this->name));
     }
 
     /**