|
1 | 1 | # Introduction |
2 | 2 |
|
3 | | -## jQuery DataTables API for Laravel |
| 3 | +<a name="laravel"></a> |
| 4 | +## Laravel |
| 5 | +The PHP Framework For Web Artisans. |
| 6 | + |
| 7 | +Laravel is a web application framework with expressive, elegant syntax. |
| 8 | +We believe development must be an enjoyable, creative experience to be truly fulfilling. |
| 9 | +Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as: |
| 10 | + |
| 11 | +Official documentation of Laravel is available at [laravel.com](https://laravel.com/) |
| 12 | + |
| 13 | +<a name="datatables"></a> |
| 14 | +## DataTables |
| 15 | +DataTables is a plug-in for the [jQuery](https://jquery.com/) Javascript library. |
| 16 | +It is a highly flexible tool, based upon the foundations of progressive enhancement, and will add advanced interaction controls to any HTML table. |
| 17 | + |
| 18 | +Official documentation of DataTables is available at [datatables.net](https://datatables.net) |
| 19 | + |
| 20 | +<a name="laravel-datatables"></a> |
| 21 | +## Laravel DataTables |
4 | 22 |
|
5 | 23 | [](https://gitter.im/yajra/laravel-datatables?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
6 | 24 | [](https://packagist.org/packages/yajra/laravel-datatables-oracle) |
|
11 | 29 | [](https://scrutinizer-ci.com/g/yajra/laravel-datatables/?branch=master) |
12 | 30 | [](https://packagist.org/packages/yajra/laravel-datatables-oracle) |
13 | 31 |
|
14 | | -This package is created to handle [server-side](https://www.datatables.net/manual/server-side) works of [DataTables](http://datatables.net) jQuery Plugin via [AJAX option](https://datatables.net/reference/option/ajax) by using Eloquent ORM, Fluent Query Builder or Collection. |
15 | | - |
16 | | -```php |
17 | | -use Yajra\Datatables\Facades\Datatables; |
18 | | - |
19 | | -// Using Eloquent |
20 | | -return Datatables::eloquent(User::query())->make(true); |
21 | | - |
22 | | -// Using Query Builder |
23 | | -return Datatables::queryBuilder(DB::table('users'))->make(true); |
| 32 | +Laravel DataTables is a package that handles the [server-side](https://www.datatables.net/manual/server-side) works of [DataTables](http://datatables.net) using [Laravel](http://laravel.com). |
24 | 33 |
|
25 | | -// Using Collection |
26 | | -return Datatables::collection(User::all())->make(true); |
27 | 34 |
|
28 | | -// Using the Engine Factory |
29 | | -return Datatables::of(User::query())->make(true); |
30 | | -return Datatables::of(DB::table('users'))->make(true); |
31 | | -return Datatables::of(User::all())->make(true); |
32 | | -``` |
|
0 commit comments