Skip to content

Configuration

Publishing

bash
php artisan vendor:publish --tag=inertia-table-config

Options

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

KeyTypeDefaultDescription
per_pageint10Default rows per page
date_formatstringYYYY-MM-DD HH:mm:ssDefault date format for the frontend
search_debounceint300Search input debounce in milliseconds
table_pathstringTablesPath within app/ for generated table classes