From bea8b9b38bbcab269fd8d6f038c9e27f677f1602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Alfaiate?= Date: Tue, 22 Apr 2025 12:01:35 +0700 Subject: [PATCH] feat: Public visibility for `resolveRelationColumn` method --- src/EloquentDataTable.php | 5 ++--- src/QueryDataTable.php | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/EloquentDataTable.php b/src/EloquentDataTable.php index edcb9294..b16f5c8a 100644 --- a/src/EloquentDataTable.php +++ b/src/EloquentDataTable.php @@ -155,12 +155,11 @@ protected function isMorphRelation($relation) } /** - * Resolve the proper column name be used. - * + * {@inheritDoc} * * @throws \Yajra\DataTables\Exceptions\Exception */ - protected function resolveRelationColumn(string $column): string + public function resolveRelationColumn(string $column): string { $parts = explode('.', $column); $columnName = array_pop($parts); diff --git a/src/QueryDataTable.php b/src/QueryDataTable.php index 09d4fa46..561ccf62 100644 --- a/src/QueryDataTable.php +++ b/src/QueryDataTable.php @@ -384,9 +384,9 @@ public function getQuery(): QueryBuilder } /** - * Resolve the proper column name be used. + * Resolve the proper column name to be used. */ - protected function resolveRelationColumn(string $column): string + public function resolveRelationColumn(string $column): string { return $column; }