Package Data | |
---|---|
Maintainer Username: | yajra |
Maintainer Contact: | aqangeles@gmail.com (Arjay Angeles) |
Package Create Date: | 2017-07-19 |
Package Last Update: | 2017-07-20 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-23 03:09:18 |
Package Statistics | |
---|---|
Total Downloads: | 109 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 12 |
Total Watchers: | 2 |
Total Forks: | 4 |
Total Open Issues: | 3 |
This package is a plugin of Laravel DataTables to support searching using Laravel Scout.
composer require yajra/laravel-datatables-scout:^1.0
use Yajra\DataTables\ScoutDataTable;
$model = new App\User;
return (new ScoutDataTable($model))->toJson()
ScoutDataTable
trait on your model.use Yajra\DataTables\Traits\ScoutDataTable;
class User extends Model
{
use ScoutDataTable;
}
Route::get('users/data', function() {
return User::dataTable()->toJson();
});
Please see CONTRIBUTING for details.
If you discover any security related issues, please email aqangeles@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.