'string', ]; /** * Get the blog that owns the like/dislike. */ public function blog(): BelongsTo { return $this->belongsTo(Blog::class); } /** * Get the user that owns the like/dislike. */ public function user(): BelongsTo { return $this->belongsTo(User::class); } /** * Get available types. */ public static function getTypes(): array { return [ 'like' => 'Like', 'dislike' => 'Dislike', ]; } }