Laravel-datatables: Call to undefined method Bllim\Datatables\Datatables::usingeloquent()

Created on 28 Jan 2016  ·  3Comments  ·  Source: yajra/laravel-datatables

untitled-er

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);

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

All 3 comments

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

untitled-er2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sangnguyenplus picture sangnguyenplus  ·  3Comments

shadoWalker89 picture shadoWalker89  ·  3Comments

Mopster picture Mopster  ·  3Comments

nasirkhan picture nasirkhan  ·  3Comments

jackrsantana picture jackrsantana  ·  3Comments