From aea751f54dcaa3f80a8609b5bc38f17c76c2d620 Mon Sep 17 00:00:00 2001 From: Harings Rob Date: Wed, 4 Jan 2023 08:02:19 +0100 Subject: [PATCH] Revert "Change pluckby to pluckBy" This reverts commit 2b23fc9b6b00b67fec0c67f5582a89e65454c349. --- src/Repositories/ModuleRepository.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Repositories/ModuleRepository.php b/src/Repositories/ModuleRepository.php index 3b23b212c..be2c9c139 100644 --- a/src/Repositories/ModuleRepository.php +++ b/src/Repositories/ModuleRepository.php @@ -163,10 +163,10 @@ public function getById($id, $with = [], $withCount = []) * @param string $column * @param array $orders * @param null $exceptId - * @param string $pluckBy + * @param string $pluckby * @return \Illuminate\Support\Collection */ - public function listAll($column = 'title', $orders = [], $exceptId = null, $pluckBy = 'id') + public function listAll($column = 'title', $orders = [], $exceptId = null, $pluckby = 'id') { $query = $this->model->newQuery(); @@ -184,7 +184,7 @@ public function listAll($column = 'title', $orders = [], $exceptId = null, $pluc $query = $query->withTranslation(); } - return $query->get()->pluck($column, $pluckBy); + return $query->get()->pluck($column, $pluckby); } /**