PHPackages                             designbycode/eloquent-datatable - 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. [Database &amp; ORM](/categories/database)
4. /
5. designbycode/eloquent-datatable

ActiveLibrary[Database &amp; ORM](/categories/database)

designbycode/eloquent-datatable
===============================

Create eloquent datatables

1.1.1(2y ago)053[4 PRs](https://github.com/designbycode/eloquent-datatable/pulls)MITPHPPHP ^8.2CI passing

Since Apr 6Pushed 1mo agoCompare

[ Source](https://github.com/designbycode/eloquent-datatable)[ Packagist](https://packagist.org/packages/designbycode/eloquent-datatable)[ Docs](https://github.com/designbycode/eloquent-datatable)[ GitHub Sponsors](https://github.com/designbycode)[ RSS](/packages/designbycode-eloquent-datatable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (15)Versions (10)Used By (0)

Create eloquent datatables
==========================

[](#create-eloquent-datatables)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3a775dd6887abc57bc80ea895b9af22c2fc1432bb1f1d1eb4eecb86e00181fab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657369676e6279636f64652f656c6f7175656e742d646174617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/designbycode/eloquent-datatable)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f73b6dc5b7d829af069dff2a110f20c3c0e05f2bb5e14a98470b87768d590956/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64657369676e6279636f64652f656c6f7175656e742d646174617461626c652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/designbycode/eloquent-datatable/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/467d0fa209a86683530c488022368c6f8c88666063249a454ed18fbda28b6de5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64657369676e6279636f64652f656c6f7175656e742d646174617461626c652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/designbycode/eloquent-datatable/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/360bd64d555ae160c8be3cd62a711b5b8188fde352b6119b8f4aa28e44d27b55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657369676e6279636f64652f656c6f7175656e742d646174617461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/designbycode/eloquent-datatable)

An Eloquent way to build datatables.

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

[](#installation)

You can install the package via composer:

```
composer require designbycode/eloquent-datatable
```

Usage
-----

[](#usage)

To create a datatable controller you have to run the following command. This will generate a new controller with all the needed files.

```
php artisan datatable:create PostsDatatableController
```

The artisan command comes with 2 optional parameters. The `--model` parameter defines which model to use for the datatable. The `--middleware` parameter defines which middleware to use for the datatable.

```
php artisan datatable:create PostsDatatableController --model=Post --middleware=auth,auth.admin
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Claude Myburgh](https://github.com/designbycode)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance60

Regular maintenance activity

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~1 days

Total

5

Last Release

766d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65820d809cbae9f6fa2f5984f3c584e97b8fad0824590cf23e36cc8d85166cb2?d=identicon)[claudemyburgh](/maintainers/claudemyburgh)

---

Top Contributors

[![claudemyburgh](https://avatars.githubusercontent.com/u/6057076?v=4)](https://github.com/claudemyburgh "claudemyburgh (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")

---

Tags

laraveldesignbycodeeloquent-datatable

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/designbycode-eloquent-datatable/health.svg)

```
[![Health](https://phpackages.com/badges/designbycode-eloquent-datatable/health.svg)](https://phpackages.com/packages/designbycode-eloquent-datatable)
```

###  Alternatives

[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[spatie/laravel-model-flags

Add flags to Eloquent models

4301.1M1](/packages/spatie-laravel-model-flags)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-sql-commenter

Add comments to SQL queries made by Laravel

1931.4M1](/packages/spatie-laravel-sql-commenter)[spatie/laravel-deleted-models

Automatically copy deleted records to a separate table

409109.8k4](/packages/spatie-laravel-deleted-models)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

203330.1k2](/packages/wnx-laravel-backup-restore)

PHPackages © 2026

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