From 5743e97f32735251dd063c9809027b9d3bd77735 Mon Sep 17 00:00:00 2001 From: TerranChao Date: Wed, 30 Nov 2022 14:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A9handle=E8=B7=AF=E7=94=B1=E8=B5=B0?= =?UTF-8?q?=E5=AD=90=E5=90=8E=E5=8F=B0=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Form/Field/BelongsToRelation.php | 2 +- src/Form/Field/ValuePicker.php | 2 +- src/Grid/Displayers/BelongsTo.php | 2 +- src/Grid/Displayers/Modal.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Form/Field/BelongsToRelation.php b/src/Form/Field/BelongsToRelation.php index 9c41ab18d8..ee5d16a7d9 100644 --- a/src/Form/Field/BelongsToRelation.php +++ b/src/Form/Field/BelongsToRelation.php @@ -62,7 +62,7 @@ protected function getLoadUrl($multiple = 0) $selectable = str_replace('\\', '_', $this->selectable); $args = [$multiple]; - return route('admin.handle-selectable', compact('selectable', 'args')); + return route(admin_get_route('handle-selectable'), compact('selectable', 'args')); } /** diff --git a/src/Form/Field/ValuePicker.php b/src/Form/Field/ValuePicker.php index a1c061809c..7d421739dd 100644 --- a/src/Form/Field/ValuePicker.php +++ b/src/Form/Field/ValuePicker.php @@ -65,7 +65,7 @@ protected function getLoadUrl() $args = [$this->multiple, $this->column]; - return route('admin.handle-selectable', compact('selectable', 'args')); + return route(admin_get_route('handle-selectable'), compact('selectable', 'args')); } /** diff --git a/src/Grid/Displayers/BelongsTo.php b/src/Grid/Displayers/BelongsTo.php index c7ded5214f..38557c0f48 100644 --- a/src/Grid/Displayers/BelongsTo.php +++ b/src/Grid/Displayers/BelongsTo.php @@ -17,7 +17,7 @@ protected function getLoadUrl($selectable, $multiple = 0) $selectable = str_replace('\\', '_', $selectable); $args = [$multiple]; - return route('admin.handle-selectable', compact('selectable', 'args')); + return route(admin_get_route('handle-selectable'), compact('selectable', 'args')); } /** diff --git a/src/Grid/Displayers/Modal.php b/src/Grid/Displayers/Modal.php index c6b6ec4a9c..9fba85d012 100644 --- a/src/Grid/Displayers/Modal.php +++ b/src/Grid/Displayers/Modal.php @@ -22,7 +22,7 @@ protected function getLoadUrl() { $renderable = str_replace('\\', '_', $this->renderable); - return route('admin.handle-renderable', compact('renderable')); + return route(admin_get_route('handle-renderable'), compact('renderable')); } /**