*/ protected $fillable = [ 'author_id', 'contact_id', 'action', 'description', 'feedable_id', 'feedable_type', ]; /** * Get the user associated with the contact feed item. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\User, $this> */ public function author(): BelongsTo { return $this->belongsTo(User::class, 'author_id'); } /** * Get the contact associated with the contact feed item. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this> */ public function contact(): BelongsTo { return $this->belongsTo(Contact::class); } /** * Get the contact information type associated with the contact feed item. */ public function feedable(): MorphTo { return $this->morphTo(); } }