z-song/laravel-admin · error · Exception
admin.parent_select_error
Error message
admin.parent_select_error
What it means
Error "admin.parent_select_error" thrown in z-song/laravel-admin.
Source
Thrown at src/Traits/ModelTree.php:306
public function delete()
{
$this->where($this->parentColumn, $this->getKey())->delete();
return parent::delete();
}
/**
* {@inheritdoc}
*/
protected static function boot()
{
parent::boot();
static::saving(function (Model $branch) {
$parentColumn = $branch->getParentColumn();
if (Request::has($parentColumn) && Request::input($parentColumn) == $branch->getKey()) {
throw new \Exception(trans('admin.parent_select_error'));
}
if (Request::has('_order')) {
$order = Request::input('_order');
Request::offsetUnset('_order');
(new Tree(new static()))->saveOrder($order);
return false;
}
return $branch;
});
}
}
View on GitHub (pinned to 67c441eb78)
When it happens
Trigger: Thrown at src/Traits/ModelTree.php:306 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of z-song/laravel-admin@67c441eb78 (2026-08-21).
Data as JSON: /api/errors/7cb42ba9b20e4f52.
Report an issue: GitHub.