Skip to content
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:

  1. Query Builder Engine

    app('datatables')->usingQueryBuilder($builder)->make()

  2. Eloquent Engine

    app('datatables')->usingEloquent($builder)->make()

  3. Collection Engine

    app('datatables')->usingCollection($builder)->make()