'Active', self::IS_ACTIVE_FILTER_INACTIVE => 'Inactive', ]; /** * @return BelongsTo */ public function reportedBy() { return $this->belongsTo(User::class, 'reported_by'); } /** * @return BelongsTo */ public function reportedTo() { return $this->belongsTo(User::class, 'reported_to'); } /** * @param string $value * * @return string */ public function getNotesAttribute($value) { return nl2br(htmlspecialchars_decode($value)); } }