Skip to content

Commit

Permalink
Merge pull request #5691 from terranc/patch2
Browse files Browse the repository at this point in the history
让handle路由走子后台路由
  • Loading branch information
jxlwqq authored Feb 3, 2023
2 parents abd2392 + 5743e97 commit 67c441e
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

1 comment on commit 67c441e

@Cohostma
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello

Please sign in to comment.