forked from yajra/laravel-datatables
-
Notifications
You must be signed in to change notification settings - Fork 0
IoC Container
Arjay Angeles edited this page May 22, 2015
·
2 revisions
###IoC Container
You can access Datatables
class using Laravel's IoC container by accessing datatables
key like app('datatables')
. This will return an instance of Datatables
class which will allow you to use the following Engines:
-
Query Builder Engine
app('datatables')->usingQueryBuilder($builder)->make()
-
Eloquent Engine
app('datatables')->usingEloquent($builder)->make()
-
Collection Engine
app('datatables')->usingCollection($builder)->make()