代码
Datatables.php 第 1071 行中的 ErrorException:
调用未定义的方法 Bllim\Datatables\Datatables::usingeloquent()
代码
$list = Store::select('*')->where('user_id','=',$id);
return Datatables::of($list)
->addColumn('action', function ($list) {
return "
<div class='btn-group pull-right'>
<button type='button' class='btn green btn-sm btn-outline dropdown-toggle' data-toggle='dropdown'
aria-expanded='true'> Actions <i class='fa fa-angle-down'></i>
</button>
<ul class='dropdown-menu pull-right' role='menu'>
<li><a href='".route('stores.view',$list->id)."' > View Store</a></li>
<li><a href='".route('stores.edit',$list->id)."' class='fancybox fancybox.ajax'> Edit Store</a></li>
<li><a href='".route('stores.edit',$list->id)."' class='fancybox fancybox.ajax'> Connect Facebook</a></li>
</ul>
</div>";
})
->removeColumn('updated_at')
->removeColumn('created_at')
->make(true);
看起来像是 Laravel Stats Tracker 引起的冲突
在 HandleExceptions->handleError('256', '调用未定义的方法 Bllim\Datatables\Datatables::usingquerybuilder()', 'D:\wamp\www\mookh\mookh-products\vendor\pragmarx\datatables\src\Bllim \Datatables\Datatables.php', '1071', array('name' => 'usingquerybuilder', 'arguments' => array(object(Builder)), 'this' => object(Datatables)))
解决了
重新排序自动加载的服务提供者
实用主义下的亚吉拉
然后我是供应商:再次发布
最有用的评论
解决了
重新排序自动加载的服务提供者
实用主义下的亚吉拉
然后我是供应商:再次发布
感谢https://github.com/antonioribeiro/tracker/issues/140