*/ protected $fillable = [ 'contact_id', 'label', 'day', 'month', 'year', 'contact_important_date_type_id', ]; /** * Get the contact associated with the contact date. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this> */ public function contact(): BelongsTo { return $this->belongsTo(Contact::class); } /** * Get the important date type associated with the contact date. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\ContactImportantDateType, $this> */ public function contactImportantDateType(): BelongsTo { return $this->belongsTo(ContactImportantDateType::class); } /** * Get the important date's feed item. * * @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this> */ public function feedItem(): MorphOne { return $this->morphOne(ContactFeedItem::class, 'feedable'); } }