我为导航栏使用引导框架,现在我想使用summernote WYSIWYG HTML 编辑器。
如果我导入bootstrap.min.js脚本,导航栏下拉菜单可以完美运行,但summernote 中的下拉菜单不行(颜色选择等)。
如果我删除此脚本,summernote 会起作用,但导航栏下拉列表不起作用。我还删除jquery.min.js并创建了自己的脚本,用于将打开的类添加到下拉切换中,因为jquery.min.js不会出现 Summernote。
导航栏和summernote下拉功能的任何解决方案?
我有三个想要关联的表。Shipment_methods、Ship_companies和Payment_methods。
关系:
Shipment_methods <- hub1 -> Ship_companies
数据透视表1 <- 数据透视表2 -> Payment_methods
好吧,我想做的是,例如 ShipmentMethod_A 附加到 ShipCompany_B,对于此记录(来自数据透视表 1),我想通过数据透视表 2 表附加来自 Payment_method 表的记录。
发货方式型号:
public function ship_companies()
{
return $this->belongsToMany(ShipCompany::class, 'shipment_methods_ship_companies', 'shipment_method_id', 'ship_company_id')->withPivot('price_kc', 'price_ha');
}
Run Code Online (Sandbox Code Playgroud)
船公司型号:
public function shipment_methods()
{
return $this->belongsToMany(ShipCompany::class, 'shipment_methods_ship_companies', 'ship_company_id', 'shipment_method_id');
}
Run Code Online (Sandbox Code Playgroud)
我需要做的是我想检索特定 ShipmentMethod 的 ShipCompany 的所有付款,例如
ShipmentMethods->ship_companies->pivot->payments_methods
Run Code Online (Sandbox Code Playgroud)
谢谢。