laravel-datatables maintained by ad-mos
Description
DataTables Server-Side API for Laravel Framework
Author
Last update
2026/01/27 16:12
(dev-master)
License
Downloads
10 794
Tags
Last update
2026/01/27 16:12
License
Require
- doctrine/dbal ^2.6|^3.0
- php ^8.0
- illuminate/database ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/http ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
Last update
2026/01/27 16:12
License
Require
- php ^8.0
- doctrine/dbal ^2.6|^3.0
- illuminate/database ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/http ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
Last update
2026/01/22 09:26
License
Require
- php ^8.0
- doctrine/dbal ^2.6|^3.0
- illuminate/database ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/http ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
Last update
2025/10/26 11:34
License
Require
- php ^8.0
- doctrine/dbal ^2.6|^3.0
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10
Last update
2024/04/17 15:52
License
Require
- php ^7.1|^8.0
- doctrine/dbal ^2.6|^3.0
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10
Last update
2023/05/10 16:22
License
Require
- php ^7.1|^8.0
- doctrine/dbal ^2.6|^3.0
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10
Last update
2022/02/16 11:25
License
Require
- php ^7.1|^8.0
- doctrine/dbal ^2.6|^3.0
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0
Last update
2021/11/23 07:56
License
Require
- php ^7.1|^8.0
- doctrine/dbal ^2.6|^3.0
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Last update
2021/11/23 07:51
License
Require
- php ^7.1|^8.0
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Last update
2021/11/16 07:34
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Last update
2021/07/09 12:32
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Last update
2021/07/09 09:03
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Last update
2021/02/09 09:38
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Last update
2020/11/17 11:50
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Last update
2020/10/20 14:05
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Last update
2020/10/20 12:56
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Last update
2020/09/09 08:36
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Last update
2020/06/25 15:19
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0
Last update
2019/11/13 10:47
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0|^6.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0|^6.0
Last update
2019/11/10 23:41
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0
Last update
2019/11/10 14:22
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0
Last update
2019/06/25 16:29
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0
Last update
2019/05/22 19:36
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0
Last update
2019/04/25 17:02
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0
Last update
2019/04/21 12:08
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0
Last update
2019/04/20 09:09
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0
Last update
2019/04/09 12:35
License
Require
- php ^7.1.3
- doctrine/dbal ^2.6
- illuminate/database ~5.6.0|~5.7.0|~5.8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0
Last update
2019/04/08 20:07
License
Require
- php ^7.1.3
- doctrine/dbal ^2.9
- illuminate/database ~5.6.0|~5.7.0|~5.8.0
- illuminate/filesystem ~5.6.0|~5.7.0|~5.8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0
- illuminate/support ~5.6.0|~5.7.0|~5.8.0
- illuminate/view ~5.6.0|~5.7.0|~5.8.0
Last update
2019/04/08 13:55
License
Require
- php ^7.1.3
- doctrine/dbal ^2.9
- illuminate/database ~5.6.0|~5.7.0|~5.8.0
- illuminate/filesystem ~5.6.0|~5.7.0|~5.8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0
- illuminate/support ~5.6.0|~5.7.0|~5.8.0
- illuminate/view ~5.6.0|~5.7.0|~5.8.0
Last update
2019/04/06 12:22
License
Require
- php ^7.1.3
- doctrine/dbal ^2.9
- illuminate/database ~5.6.0|~5.7.0|~5.8.0
- illuminate/filesystem ~5.6.0|~5.7.0|~5.8.0
- illuminate/http ~5.6.0|~5.7.0|~5.8.0
- illuminate/support ~5.6.0|~5.7.0|~5.8.0
- illuminate/view ~5.6.0|~5.7.0|~5.8.0
DataTables Server-Side API for Laravel Framework
Quick Installation
$ composer require ad-mos/laravel-datatables
Usage examples
1 - Simple table:
public function data(DataTables $dataTables)
{
return $dataTables->provide(new User);
}
2 - Table with joins:
public function data(DataTables $dataTables)
{
$model = new User;
$query = $model->newQuery()
->leftJoin('user_emails', 'user_emails.user_id', '=', 'users.id')
->leftJoin('user_phones', 'user_phones.user_id', '=', 'users.id')
->groupBy('users.id');
$aliases = [
'emails' => 'GROUP_CONCAT(DISTINCT `user_emails`.email SEPARATOR \'|\')',
'phones' => 'GROUP_CONCAT(DISTINCT `user_phones`.phone SEPARATOR \'|\')',
];
return $dataTables->provide($this->model, $query, $aliases);
}
DataTables can be accessed through IoC, helper or facade:
return $dataTables->provide(...);
return datatables()->provide(...);
return \DataTables::provide(...);
License
The MIT License. More information here.
