tranquil-tools/laravel-vue-table-builder
| Install | |
|---|---|
composer require tranquil-tools/laravel-vue-table-builder |
|
| Latest Version: | 1.19.1 |
| PHP: | ^8.3 |
| Laravel: | 11 · 12 · 13 |
| License: | MIT |
| Last Updated: | Nov 7, 2026 |
| Links: | GitHub · Packagist |
A VueJS/Inertia TableBuilder package for Laravel
A powerful and flexible table builder package for Laravel with Vue 3, Inertia.js, and shadcn-vue components.
CrudBuilder
Want a complete CRUD solution? Our CrudBuilder builds on top of this TableBuilder and the FormBuilder to give you full create, read, update, and delete flows without repetitive boilerplate.
- Docs: docs.comfycoders.nl/laravel-vue-crud-builder
- GitHub: github.com/ComfyCodersBV/laravel-vue-crud-builder
Installing the CrudBuilder pulls in this package automatically as a Composer dependency.
Installation
You can install the package via composer:
composer require tranquil-tools/laravel-vue-table-builder
Install the required npm packages:
npm install reka-ui @lucide/vue
Alter your vite.config.ts to add an @table-builder alias:
import {defineConfig} from 'vite';
import path from 'path';
export default defineConfig({
plugins: [
// ...
],
resolve: {
alias: {
// Add this:
'@table-builder': path.resolve(__dirname, 'vendor/tranquil-tools/laravel-vue-table-builder/resources/js'),
},
},
});
You can publish the config file with:
php artisan vendor:publish --tag="table-builder-config"
The config ships with tranquil-tools/laravel-table-builder. An application that published config/vue-table-builder.php before 1.9 keeps working; rename the file when convenient.
Usage
Backend (Laravel)
Create a table class:
use App\Models\User;
use Illuminate\Database\Eloquent\Builder;
use TranquilTools\TableBuilder\AbstractTable;
use TranquilTools\TableBuilder\TableBuilder;
class UsersTable extends AbstractTable
{
public function for(): Builder
{
return User::query();
}
public function configure(TableBuilder $table)
{
$table
->defaultSort('name')
->withGlobalSearch(columns: ['name', 'email'])
->column('id', 'ID')
->column('name', 'Name', sortable: true)
->column('email', 'Email', sortable: true)
->column('created_at', 'Created', sortable: true)
->paginate(25);
}
}
In your controller:
use Inertia\Inertia;
public function index()
{
return Inertia::render('Users/Index', [
'table' => \App\Tables\UsersTable::build(),
]);
}
Frontend (Vue)
Import the TableBuilder component:
<script setup lang="ts">
import {TableBuilder} from '@/components'
import type {TableData} from '@/types/table-builder'
defineProps<{
table: TableData
}>()
</script>
<template>
<div>
<h1>Users</h1>
<TableBuilder :table="table"/>
</div>
</template>
Features
- 🎨 Beautiful UI with shadcn-vue table components
- 🔍 Sortable columns with visual indicators
- 📄 Pagination with Inertia.js optimization
- 🎯 Nested relationship support (e.g.,
user.company.name) - 🚀 Built with TypeScript for type safety
- ⚡ Optimized navigation with preserve-state and preserve-scroll
- 🔌 Optional HTTP transport to drive a table from an API instead of the Inertia page
- 🧩 Scoped slots for cells, row actions and extra toolbar controls
- 🔗 Row links that work with the mouse anywhere on the row and with Tab and Enter through a hidden link in the first cell
- ↕️ Drag-reorderable rows, per-row classes, a
row-clickevent and arow-afterslot for nested rows - 🔘 Row actions defined in the Table class, hidden or disabled per row, with a confirm question (through your own dialog with
registerConfirmHandler()) and an icon per row or as icon-only buttons; double clicks are guarded with a busy state - 🧱 A grid layout that renders the rows as responsive tiles, with a list/grid switch kept in the url, or tiles on phones and rows from a breakpoint with
gridBelow() - 📐
hideBelowhides a less important column, header included, below a breakpoint - 👆 Touch-sized buttons, menu items and checkbox hit areas on coarse pointers, compact with a mouse
- ☑️ Bulk selection with Shift-click to select a range of rows
- 💾 Server-side reorder persistence on an order column
- 📅 Date and date range filters, configurable query keys and empty states
- 📱 Fully responsive design
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Define Laravel form configurations in PHP: schema, fields, validation and config...
A VueJS/Inertia renderer for tranquil-tools/laravel-form-builder
Define Laravel tables in PHP: columns, filters, search, sorting, bulk and row ac...
A package to easily make use of country & language flags in your Laravel Blade v...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.19.1 | ^8.3 | ^11.0|| | MIT | |
| 1.19.0 | ^8.3 | ^11.0|| | MIT | |
| 1.18.0 | ^8.3 | ^11.0|| | MIT | |
| 1.17.0 | ^8.3 | ^11.0|| | MIT | |
| 1.16.0 | ^8.3 | ^11.0|| | MIT | |
| 1.15.0 | ^8.3 | ^11.0|| | MIT | |
| 1.14.0 | ^8.3 | ^11.0|| | MIT | |
| 1.13.2 | ^8.3 | ^11.0|| | MIT | |
| 1.13.0 | ^8.3 | ^11.0|| | MIT | |
| 1.12.0 | ^8.3 | ^11.0|| | MIT | |
| 1.11.1 | ^8.3 | ^11.0|| | MIT | |
| 1.11.0 | ^8.3 | ^11.0|| | MIT | |
| 1.10.0 | ^8.3 | ^11.0|| | MIT | |
| 1.9.2 | ^8.3 | ^11.0|| | MIT | |
| 1.9.1 | ^8.3 | ^11.0|| | MIT | |
| 1.9.0 | ^8.3 | ^11.0|| | MIT | |
| 1.8.1 | ^8.3 | ^11.0|| | MIT | |
| 1.8.0 | ^8.3 | ^11.0|| | MIT | |
| 1.7.0 | ^8.3 | ^11.0|| | MIT | |
| 1.6.1 | ^8.3 | ^11.0|| | MIT | |
| 1.6.0 | ^8.3 | ^11.0|| | MIT | |
| 1.5.0 | ^8.3 | ^11.0|| | MIT | |
| 1.4.0 | ^8.3 | ^11.0|| | MIT | |
| 1.3.1 | ^8.3 | ^11.0|| | MIT | |
| 1.3.0 | ^8.3 | ^11.0|| | MIT | |
| 1.2.3 | ^8.3 | ^11.0|| | MIT | |
| 1.2.2 | ^8.3 | ^11.0|| | MIT | |
| 1.2.1 | ^8.3 | ^11.0|| | MIT | |
| 1.2.0 | ^8.3 | ^11.0|| | MIT | |
| 1.1.1 | ^8.3 | ^11.0|| | MIT |
Showing the latest 30 of 53. See every release on Packagist