belongsTo(Product::class); } public function spices() { return $this->belongsToMany(Spice::class, 'recipes_spices') ->withPivot('amount_in_percent') ->withTimestamps(); } }