We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_reacted
1 parent 00e9928 commit 1788395Copy full SHA for 1788395
src/Traits/Reactable.php
@@ -74,4 +74,15 @@ public function getReactCountByType(string|LaravelReactionTypeEnum $type): int
74
{
75
return $this->reactions()->where('type', $type)->count();
76
}
77
+
78
+ // Attributes
79
80
81
+ /**
82
+ * Get is_reacted attribute.
83
+ */
84
+ public function isReactedAttribute(): bool
85
+ {
86
+ return $this->isReacted();
87
+ }
88
0 commit comments