yajra/laravel-datatables-scout

Laravel DataTables Scout Plugin.

Maintainers

👁 yajra

Package info

github.com/yajra/laravel-datatables-scout

pkg:composer/yajra/laravel-datatables-scout

Statistics

Installs: 109

Dependents: 0

Suggesters: 0

Stars: 12

Open Issues: 3

dev-master / 1.0.x-dev 2017-07-20 01:35 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 372182f6a233ebe47cdaeac50eff41a567f10efc

  • Arjay Angeles <aqangeles.woop@gmail.com>

pluginlaraveldatatablesscout

This package is auto-updated.

Last update: 2026-06-08 21:10:51 UTC


README

👁 Laravel 5.4|5.5
👁 Latest Stable Version
👁 Build Status
👁 Scrutinizer Code Quality
👁 Total Downloads
👁 License

This package is a plugin of Laravel DataTables to support searching using Laravel Scout.

Requirements

Documentations

Installation

composer require yajra/laravel-datatables-scout:^1.0

Usage

Use the dataTable class directly.

use Yajra\DataTables\ScoutDataTable;

$model = new App\User;

return (new ScoutDataTable($model))->toJson()

Use via trait.

  1. You need to use ScoutDataTable trait on your model.
use Yajra\DataTables\Traits\ScoutDataTable;

class User extends Model
{
	use ScoutDataTable;
}
  1. Process dataTable directly from your model.
Route::get('users/data', function() {
	return User::dataTable()->toJson();
});

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email aqangeles@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Buy me a beer

👁 Click here to lend your support to: Laravel DataTables and make a donation at pledgie.com !