Configuration
Publishing
bash
php artisan vendor:publish --tag=inertia-table-configOptions
php
// config/inertia-table.php
return [
// Default rows per page.
// Override per-table via $perPage property or ->perPage() setter.
'per_page' => 10,
// Default date format passed to the frontend for date display cells.
'date_format' => 'YYYY-MM-DD HH:mm:ss',
// Frontend search input debounce in milliseconds.
'search_debounce' => 300,
// Default path within app/ where table classes are generated.
// Also determines the namespace (e.g. 'Http/Tables' -> App\Http\Tables).
'table_path' => 'Tables',
];All values can be overridden per-table via class properties or fluent setters.
Config Reference
| Key | Type | Default | Description |
|---|---|---|---|
per_page | int | 10 | Default rows per page |
date_format | string | YYYY-MM-DD HH:mm:ss | Default date format for the frontend |
search_debounce | int | 300 | Search input debounce in milliseconds |
table_path | string | Tables | Path within app/ for generated table classes |