<?php if (! function_exists('datatables')) { /** * Helper to make a new DataTable instance from source. * Or return the factory if source is not set. * * @param \Illuminate\Contracts\Database\Query\Builder|\Illuminate\Contracts\Database\Eloquent\Builder|\Illuminate\Support\Collection|array|null $source * @return \Yajra\DataTables\DataTables|\Yajra\DataTables\DataTableAbstract * * @throws \Yajra\DataTables\Exceptions\Exception */ function datatables($source = null) { /** @var Yajra\DataTables\DataTables $dataTable */ $dataTable = app('datatables'); if (is_null($source)) { return $dataTable; } return $dataTable->make($source); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Contracts | Folder | 0755 |
|
|
Exceptions | Folder | 0755 |
|
|
Facades | Folder | 0755 |
|
|
Processors | Folder | 0755 |
|
|
Utilities | Folder | 0755 |
|
|
config | Folder | 0755 |
|
|
ApiResourceDataTable.php | File | 1.43 KB | 0644 |
|
CollectionDataTable.php | File | 9.37 KB | 0644 |
|
DataTableAbstract.php | File | 23.11 KB | 0644 |
|
DataTables.php | File | 5.5 KB | 0644 |
|
DataTablesServiceProvider.php | File | 2.26 KB | 0644 |
|
EloquentDataTable.php | File | 7.95 KB | 0644 |
|
QueryDataTable.php | File | 20.91 KB | 0644 |
|
helper.php | File | 750 B | 0644 |
|
lumen.php | File | 544 B | 0644 |
|