belongsTo(Registration::class); } /* |--------------------------- | Helper methods |--------------------------- */ // Optional: short preview for UI public function getPreviewAttribute() { return strlen($this->comment) > 50 ? substr($this->comment, 0, 50) . '...' : $this->comment; } }