*/ protected $fillable = [ 'pet_category_id', 'contact_id', 'name', ]; /** * Get the pet category associated with the pet. */ public function petCategory(): BelongsTo { return $this->belongsTo(PetCategory::class); } /** * Get the contact associated with the pet. */ public function contact(): BelongsTo { return $this->belongsTo(Contact::class); } /** * Get the pet's feed item. */ public function feedItem(): MorphOne { return $this->morphOne(ContactFeedItem::class, 'feedable'); } }