code
ErrorException in Datatables.php line 1071:
Call to undefined method Bllim\Datatables\Datatables::usingeloquent()
code
$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);
looks like the conflict caused by Laravel Stats Tracker
at HandleExceptions->handleError('256', 'Call to undefined method 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)))
Solved
reorder Autoloaded Service Providers
yajra under pragmarx
and then i'm vendor:publish again
thanks to https://github.com/antonioribeiro/tracker/issues/140
Most helpful comment
Solved
reorder Autoloaded Service Providers
yajra under pragmarx
and then i'm vendor:publish again
thanks to https://github.com/antonioribeiro/tracker/issues/140