From e31ee74e5927db9762219f37baee10c097a6c524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=AC=E9=A3=8E?= <1770963469@qq.com> Date: Thu, 17 Sep 2020 17:02:56 +0800 Subject: [PATCH 1/2] Update Latlong.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复laravel-admin:1.8.*不能传参的问题 --- src/Latlong.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Latlong.php b/src/Latlong.php index 632cdab..965c5cd 100644 --- a/src/Latlong.php +++ b/src/Latlong.php @@ -120,6 +120,8 @@ public function render() 'provider' => Extension::config('default'), ]; + $this->addVariables($variables); + return parent::fieldRender($variables); } } From 06d0739812c348040d8e7566bba67fe78aaeff76 Mon Sep 17 00:00:00 2001 From: Song Date: Thu, 17 Sep 2020 17:06:55 +0800 Subject: [PATCH 2/2] Update Latlong.php --- src/Latlong.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Latlong.php b/src/Latlong.php index 965c5cd..1508f90 100644 --- a/src/Latlong.php +++ b/src/Latlong.php @@ -122,6 +122,6 @@ public function render() $this->addVariables($variables); - return parent::fieldRender($variables); + return parent::fieldRender(); } }