Closed datomnurdin closed 5 years ago
Hey, @datomnurdin. The package works only with models (eloquent models) not with database query builder.
Basically you want to read more on the models topic and understand the difference between using model and query builder, the gist of what you need is:
$users = User::sortable()->paginate(); // no ->get()! because thats included in the paginate() already
Thanks. It works.
I'm trying to populate the data and try to sort out. But it seems I got this error message.
It happened when I updated it here
Please advice. TQ.