From b218b1cb909a0f24a4bb362ca4a94436f9d99f7d Mon Sep 17 00:00:00 2001 From: Chill Bits Date: Fri, 31 Jan 2020 12:02:15 +0700 Subject: [PATCH] Fix findWhereLike return all data of collection --- src/Repositories/Eloquent/AbstractRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repositories/Eloquent/AbstractRepository.php b/src/Repositories/Eloquent/AbstractRepository.php index 3f379bd..570a790 100644 --- a/src/Repositories/Eloquent/AbstractRepository.php +++ b/src/Repositories/Eloquent/AbstractRepository.php @@ -80,7 +80,7 @@ public function findWhereFirst($column, $value) */ public function findWhereLike($columns, $value, $paginate = null) { - $query = $this->entity; + $query = $this->entity->query(); if (is_string($columns)) { $columns = [$columns];