From 63b5fa0a9570a497489549b308ba12daea47c69b Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Wed, 25 Sep 2024 04:21:27 +0700 Subject: [PATCH] feat: add methods to docblock for clean LikeCount trait --- src/Traits/LikeCount.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Traits/LikeCount.php b/src/Traits/LikeCount.php index ceab00f..e8d8075 100644 --- a/src/Traits/LikeCount.php +++ b/src/Traits/LikeCount.php @@ -3,12 +3,16 @@ namespace CSlant\LaravelLike\Traits; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Relations\MorphMany; /** * Trait LikeCount * * @package CSlant\LaravelLike\Traits * @mixin Model + * + * @method MorphMany likesTo() + * @method MorphMany dislikesTo() */ trait LikeCount {