New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

yajra/laravel-datatables-scout

Laravel DataTables Scout Plugin.
109 12
Install
composer require yajra/laravel-datatables-scout:dev-master
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

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

Related Packages

namoshek/laravel-scout-database

A generic Laravel Scout driver which performs full-text search on indexed model...

80,361 19
ad-mos/laravel-datatables

DataTables Server-Side API for Laravel Framework

11,609 1
electro-modules/illuminate-database

Integrates the Laravel's Illuminate Database Component into the Electro framewor...

2,318 0
elfsundae/laravel-datatables

An extended package based on yajra/laravel-datatables.

434 0
mindofmicah/laravel-datatables

Middleman allowing Laravel and Datatables to communicate

33 2