yajra/laravel-datatables-scout

Laravel DataTables Scout Plugin.
109 12
Install
composer require yajra/laravel-datatables-scout
PHP:>=7.0
License:MIT
Last Updated:Jul 20, 2017
Links: GitHub  ·  Packagist
Maintainer: yajra

Laravel DataTables Scout Plugin

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

Related Packages

yajra/laravel-datatables-buttons

Laravel DataTables Buttons Plugin.

10,193,376 256
teamtnt/laravel-scout-tntsearch-driver

Driver for Laravel Scout search package based on https://github.com/teamtnt/tnts...

2,684,421 1,136
yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

37,009,239 4,867
yajra/laravel-datatables-html

Laravel DataTables HTML builder plugin

10,759,039 285
lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users...

19,493,333 2,339