我有一张桌子
var arr = jQuery('#change_entry tr:gt(0)').map(function () {
return [jQuery('input', this).map(function () {
if (this.type != "checkbox" || this.checked) //added this line
return this.value;
}).get()];
}).get();
现在,排行榜的模型如下
Leadsheet
---leadcode
Deal
-- leadcode(foreign key)
我想只获得那些在交易表中使用Eloquent
的交易谢谢
答案 0 :(得分:0)
为了坚持使用约定,你应该大概Leadsheet
并使用小写public function deal()
。
在查询方面只能通过交易获得排行榜。
$leadsheets = Leadsheet::has('deal')->get();