'bool', 'pos' => 'int' ]; protected $fillable = [ 'name', 'trans_name', 'inci', 'trans_inci', 'effect', 'trans_effect', 'active', 'pos' ]; public function products() { return $this->belongsToMany(Product::class, 'product_ingredients') ->withPivot('id') ->withTimestamps(); } public function product_ingredients() { return $this->hasMany(ProductIngredient::class, 'product_ingredients', 'id'); } }