Skip to content

Commit

Permalink
让handle路由走子后台路由
Browse files Browse the repository at this point in the history
  • Loading branch information
terranc committed Nov 30, 2022
1 parent 3fb6c9e commit 5743e97
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Form/Field/BelongsToRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Field/ValuePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Grid/Displayers/BelongsTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Grid/Displayers/Modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

/**
Expand Down

0 comments on commit 5743e97

Please sign in to comment.