From 7023e4cc8642fd84641f74958c32d6d4506e9a81 Mon Sep 17 00:00:00 2001 From: Zing Date: Sun, 14 Mar 2021 14:01:30 +0800 Subject: [PATCH] Remove with pivot value from distinct viewers (#20) --- src/Concerns/Viewable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Concerns/Viewable.php b/src/Concerns/Viewable.php index 47ddbc4..ec9eacf 100644 --- a/src/Concerns/Viewable.php +++ b/src/Concerns/Viewable.php @@ -73,7 +73,7 @@ public function viewers(): MorphToMany static function (MorphToMany $relation) { $relation->distinct($relation->getRelated()->qualifyColumn($relation->getRelatedKeyName())); } - )->withTimestamps(); + ); } public function viewsCount(): int