/**
* @var string - Name of property where the main text content is found
*/
- public $textField = 'description';
+ public string $textField = 'description';
+
+ /**
+ * @var string - Name of the property where the main HTML content is found
+ */
+ public string $htmlField = 'description_html';
/**
* @var float - Multiplier for search indexing.
*/
- public $searchFactor = 1.0;
+ public float $searchFactor = 1.0;
/**
* Get the entities that are visible to the current user.
*/
public function activity(): MorphMany
{
- return $this->morphMany(Activity::class, 'entity')
+ return $this->morphMany(Activity::class, 'loggable')
->orderBy('created_at', 'desc');
}