|bool */ protected $guarded = ['id']; /** * Get the primary emotion record associated with the secondary emotion. * * @return BelongsTo */ public function primary() { return $this->belongsTo(PrimaryEmotion::class, 'emotion_primary_id'); } /** * Get the emotion records associated with the secondary emotion. * * @return HasMany */ public function emotions() { return $this->hasMany(Emotion::class); } }