PHPackages                             larapeak/inertiajs-data-tables - 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. larapeak/inertiajs-data-tables

ActiveLibrary

larapeak/inertiajs-data-tables
==============================

This is my package InertiajsDataTables

v0.1(4y ago)127MITVuePHP ^8.0

Since May 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/larapeak/inertiajs-data-tables)[ Packagist](https://packagist.org/packages/larapeak/inertiajs-data-tables)[ Docs](https://github.com/larapeak/inertiajs-data-tables)[ GitHub Sponsors](https://github.com/larapeak)[ RSS](/packages/larapeak-inertiajs-data-tables/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

[![Larapeak](https://raw.githubusercontent.com/larapeak/inertiajs-data-tables/master/.github/Header.png)](https://larapeak.com/)

Create Data Tables in Laravel with Ease!
========================================

[](#create-data-tables-in-laravel-with-ease)

[![Latest Version on Packagist](https://camo.githubusercontent.com/51f14988a08b5a425f4b0d4ac34847969bdb256440939c35d4cdacb37db1376d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172617065616b2f696e65727469616a732d646174612d7461626c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/larapeak/inertiajs-data-tables)[![GitHub Tests Action Status](https://camo.githubusercontent.com/82cbca6d1003acefa0722c18de11fcf8bd1d5fee1cccda1798ee4bca89791d4d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6c6172617065616b2f696e65727469616a732d646174612d7461626c65732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/larapeak/inertiajs-data-tables/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5caeede4e12b32a0f53f2922a25e6f90b3bc2eeb422a4725c3cad73c8b49dea6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6c6172617065616b2f696e65727469616a732d646174612d7461626c65732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/larapeak/inertiajs-data-tables/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/0a99afe67ad433e8820d2d45cb45ab57e2a9611aee8eb00985777e389e0179b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6172617065616b2f696e65727469616a732d646174612d7461626c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/larapeak/inertiajs-data-tables)

---

This package provides a trait that will generate a datatable for your model. It also provides Vue components that you can use with Inertiajs.

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

[](#installation)

You can install the package via composer:

```
composer require larapeak/inertiajs-data-tables
```

You can publish the Vue components with following command:

```
php artisan vendor:publish --provider="Larapeak\InertiajsDataTables\InertiajsDataTablesServiceProvider" --tag="assets"
```

The Vue components will be published in:

```
resources\js\Shared\DataTables
```

Usage
-----

[](#usage)

Your Eloquent models should use the `Larapeak\InertiajsDataTables\HasSorting` trait.

Here's an example of how to implement the trait:

```
namespace App\Models;

use Larapeak\InertiajsDataTables\HasSorting;
use Illuminate\Database\Eloquent\Model;

class YourEloquentModel extends Model
{
    use HasSorting;

    public $sortables = [
        'field1', 'field2', 'field3'
    ]
}
```

On your Vue page you can use the DataTable component like this:

```

    import DataTable from '@/Shared/DataTables/DataTable'

    export default {
        components: {
            DataTable,
        },

        props: {
            data: Array,
            filters: Object,
        },

        data() {
            return {
                tableFields: [
                    {
                        id: 'field1',
                        name: 'Field1',
                        type: 'text',
                    },
                    {
                        id: 'field2',
                        name: 'Field2',
                        type: 'text',
                    },
                    {
                        id: 'field3',
                        name: 'Field3',
                        type: 'text',
                    }
                ]
            }
        }
    }

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Larapeak](https://github.com/larapeak)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1819d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/65972578?v=4)[larapeak](/maintainers/larapeak)[@larapeak](https://github.com/larapeak)

---

Top Contributors

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

---

Tags

laravellarapeakinertiajs-data-tables

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/larapeak-inertiajs-data-tables/health.svg)

```
[![Health](https://phpackages.com/badges/larapeak-inertiajs-data-tables/health.svg)](https://phpackages.com/packages/larapeak-inertiajs-data-tables)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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