PHPackages                             yajra/laravel-datatables-scout - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yajra/laravel-datatables-scout

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yajra/laravel-datatables-scout
==============================

Laravel DataTables Scout Plugin.

121094[3 issues](https://github.com/yajra/laravel-datatables-scout/issues)PHP

Since Jul 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/yajra/laravel-datatables-scout)[ Packagist](https://packagist.org/packages/yajra/laravel-datatables-scout)[ RSS](/packages/yajra-laravel-datatables-scout/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel DataTables Scout Plugin
===============================

[](#laravel-datatables-scout-plugin)

[![Laravel 5.4|5.5](https://camo.githubusercontent.com/a9c5f67fb9cf9a1a830ff2a9701c873d995e0d60e22a518fc176392bc76949c1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e34253743352e352d6f72616e67652e737667)](http://laravel.com)[![Latest Stable Version](https://camo.githubusercontent.com/5fd84d42c7b75388f92813aee70bad9dec59871dbb407d9dafccdaa0526fe3f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79616a72612f6c61726176656c2d646174617461626c65732d73636f75742e737667)](https://packagist.org/packages/yajra/laravel-datatables-scout)[![Build Status](https://camo.githubusercontent.com/6373dbae9526c69d9e44f5a6656be36ddfba0e1f472dd755671a334ec3130dfc/68747470733a2f2f7472617669732d63692e6f72672f79616a72612f6c61726176656c2d646174617461626c65732d73636f75742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yajra/laravel-datatables-scout)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4cab6a439096360f68cd2ace00e7b64e15079bd28ec94d022cf2cd8139857952/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f79616a72612f6c61726176656c2d646174617461626c65732d73636f75742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yajra/laravel-datatables-scout/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/63d907d455598cfa62fb1e05387478b432e9b9c0e2e0c7757eedd1b7af12b7e8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79616a72612f6c61726176656c2d646174617461626c65732d73636f75742e737667)](https://packagist.org/packages/yajra/laravel-datatables-scout)[![License](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://packagist.org/packages/yajra/laravel-datatables-scout)

This package is a plugin of [Laravel DataTables](https://github.com/yajra/laravel-datatables) to support searching using [Laravel Scout](https://github.com/laravel/scout).

Requirements
------------

[](#requirements)

- [PHP &gt;=7.0](http://php.net/)
- [Laravel 5.4|5.5](https://github.com/laravel/framework)
- [Laravel Scout](https://github.com/laravel/scout)
- [Laravel DataTables](https://github.com/yajra/laravel-datatables)
- [jQuery DataTables v1.10.x](http://datatables.net/)

Documentations
--------------

[](#documentations)

- [Laravel DataTables Documentation](http://yajrabox.com/docs/laravel-datatables)

Installation
------------

[](#installation)

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

Usage
-----

[](#usage)

### Use the dataTable class directly.

[](#use-the-datatable-class-directly)

```
use Yajra\DataTables\ScoutDataTable;

$model = new App\User;

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

### Use via trait.

[](#use-via-trait)

1. You need to use `ScoutDataTable` trait on your model.

```
use Yajra\DataTables\Traits\ScoutDataTable;

class User extends Model
{
	use ScoutDataTable;
}
```

2. Process dataTable directly from your model.

```
Route::get('users/data', function() {
	return User::dataTable()->toJson();
});
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/yajra/laravel-datatables-scout/blob/master/.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Arjay Angeles](https://github.com/yajra)
- [All Contributors](https://github.com/yajra/laravel-datatables-scout/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/yajra/laravel-datatables-scout/blob/master/LICENSE.md) for more information.

Buy me a beer
-------------

[](#buy-me-a-beer)

[![Click here to lend your support to: Laravel DataTables and make a donation at pledgie.com !](https://camo.githubusercontent.com/5cd985b06c81b5c59aaf44f44bac58359a580a1edf43537012aab92dafa1468f/68747470733a2f2f706c65646769652e636f6d2f63616d706169676e732f32393531352e706e673f736b696e5f6e616d653d6368726f6d65)](https://pledgie.com/campaigns/29515)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c245d1effe6022f9f09b2e8b9cce26743de03a64d612cea4ce9885560d7c0b2?d=identicon)[yajra](/maintainers/yajra)

---

Top Contributors

[![yajra](https://avatars.githubusercontent.com/u/2687997?v=4)](https://github.com/yajra "yajra (4 commits)")

---

Tags

datatableslaravelpluginscout

### Embed Badge

![Health badge](/badges/yajra-laravel-datatables-scout/health.svg)

```
[![Health](https://phpackages.com/badges/yajra-laravel-datatables-scout/health.svg)](https://phpackages.com/packages/yajra-laravel-datatables-scout)
```

###  Alternatives

[asantibanez/livewire-calendar

Laravel Livewire calendar component

96888.9k1](/packages/asantibanez-livewire-calendar)[monsieurbiz/sylius-sales-reports-plugin

A simple plugin to have sales reports in Sylius

1230.6k](/packages/monsieurbiz-sylius-sales-reports-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
