nyumbani / dt-tables
This is a package that provides a customizable data tables component for the Laravel Framework.
Package info
github.com/nyumbani-tech-solutions/dt-tables
Language:Blade
pkg:composer/nyumbani/dt-tables
Requires
- php: ^8.3
- illuminate/console: ^12.0||^13.0
- illuminate/database: ^12.0||^13.0
- illuminate/http: ^12.0||^13.0
- illuminate/support: ^12.0||^13.0
- illuminate/validation: ^12.0||^13.0
- illuminate/view: ^12.0||^13.0
Requires (Dev)
- nyumbani/docs: ^1.1
Suggests
- nyumbani/docs: The local-only guides of Nyumbani packages, chosen in php artisan nyumbani:install and installed with composer require --dev nyumbani/docs
Provides
None
Conflicts
None
Replaces
None
- dev-master
- v3.3.0
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.1
- v3.0.0
- v2.16
- v2.15
- v2.14
- v2.13
- v2.12
- v2.11
- v2.10
- v2.09
- v2.08
- v2.07
- v2.06
- v2.05
- v2.04
- v2.03
- v2.02
- v2.01
- v2.00
- v1.09.00
- v1.08.06
- v1.08.05
- v1.08.04
- v1.08.03
- v1.08.02
- v1.08.01
- v1.07.03
- v1.07.02
- v1.07.01
- v1.06.08
- v1.06.07
- v1.06.06
- v1.06.05
- v1.06.04
- v1.06.03
- v1.06.02
- v1.06.01
- v1.06
- v1.05
- v1.04
- v1.03
- v1.0.2
- v1.0.1
- v1.0.0
- dev-feature/1-modal-integration
This package is auto-updated.
Last update: 2026-10-26 23:09:12 UTC
README
Searchable, sortable data tables for Laravel. Write a Table class, render it with <x-data-table>, and the package serves the rows, the search and the DataTables assets. Tables page in the browser, or on the server for large sets (ServerSideTable) or from a remote API (ApiTable). It requires only Laravel.
Requirements
- PHP 8.3 or newer and Laravel 12 or 13
Install
- Require it:
composer require nyumbani/dt-tables
Laravel discovers the service provider on its own. The package injects its own scripts and styles into pages that render a table, so there is nothing to import.
- Optionally publish the configuration. The package works with its defaults, so skip this until you change one:
cp vendor/nyumbani/dt-tables/config/dt-tables.php config/dt-tables.php
In an app with nyumbani/essentials, php artisan vendor:publish --tag=dt-tables-config does the same, and php artisan ui:install then sets an untouched copy to the Tailwind theme.
- Create a table and render it:
php artisan make:data-table CustomerTable
<x-data-table :payload="$table" />
For tables that should page, search and sort in the database, create it with php artisan make:data-table CustomerTable --server-side, and for rows from a remote API, with --api.
Configuration
| Key | Purpose |
|---|---|
settings.theme |
bootstrap (default) or tailwind |
settings.behaviour.page_length |
Rows per page |
themes.* |
The classes each theme gives buttons, inputs and selects |
server_side |
Limits and endpoints of server-side tables |
language |
Replace any table text for every table; the package ships Chinese (lang/zh.json); an app adds any other language, or overrides a text, in its own lang/{code}.json (see the Languages docs page) |
Docs
The full docs are served at /nyumbani-dt-tables/docs, in the local environment only, by nyumbani/docs (composer require --dev nyumbani/docs). The package works without it.