Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Simple Datatables

Laravel Simple Datatables Laravel Package

milenmk/laravel-simple-datatables

A lightweight Laravel package for adding simple server-side data tables to your application. Quickly turn Eloquent models into searchable, sortable, and paginated tables with minimal setup and Blade-friendly views—no heavy JavaScript framework required.

View on GitHub
Deep Wiki
Context7

milenmk/laravel-simple-datatables is a lightweight Laravel package for turning Eloquent queries into clean, readable data tables with minimal configuration. It removes the boilerplate usually needed for paginated, searchable, and sortable tables, so you can focus on your data instead of the plumbing.

Define your columns, point the table at a model or query builder, and render it in Blade. The package is intentionally small and opinionated—easy to read, extend, and add to existing projects.

  • Fluent column definition for models and query builders
  • Built-in searching, sorting, and pagination
  • Ready-to-use Blade views
  • Lightweight, dependency-free design
Frequently asked questions about Laravel Simple Datatables
How do I install milenmk/laravel-simple-datatables?
Install the pakkage with Composer by running composer require milenmk/laravel-simple-datatables in the root of your Laravel project. Laravel's package auto-discovery typically registers the service provider, so manual registration is usually unnecessary. After installation, check the repository README for any publishable configuration or view files you may want to customize.
Does Laravel Simple DataTables work with Livewire components?
Yes, the package is specifically designed as a simple table component for creating datatables inside Livewire components. You define your Eloquent query and column configuration, and the component handles the AJAX-driven table behaviour. This makes it a natural fit for Livewire-based admin panels and dashboards.
How do I configure columns, search and sorting in Laravel Simple DataTables?
Columns are configured through a fluent API where you declare each column's data source and mark it as searchable or sortable as needed. The package then maps DataTables search and order requests onto your Eloquent query automatically. This keeps table setup short and readable compared with manually wiring query parameters.
Which Laravel and Livewire versions are supported by this package?
The package targets modern Laravel applications that use Livewire, but exact constraints can change between releases. Check the require section of the package's composer.json or the README before installing to confirm compatibility with your Laravel and Livewire versions. If you are on an older Laravel release, verify support or pin a compatible package version.
How does server-side search, sorting and pagination work in Laravel Simple DataTables?
The component translates DataTables AJAX requests into Eloquent query constraints, so searching, ordering, and pagination are executed by the database rather than in the browser. Only the current page of results is fetched, which keeps response sizes small. This server-side approach is what makes the package suitable for tables backed by larger datasets.
Can I customize the table view or styling in Laravel Simple DataTables?
The table rendering uses Blade views, which you can typically publish and override in your application to match your own markup and CSS framework. You can also adjust column formatting and add table classes through the component configuration. Refer to the README for the exact publish command and available view customization points.
How do I test a Livewire datatable built with Laravel Simple DataTables?
Because the table lives inside a Livewire component, you can test it with Livewire's testing helpers such as Livewire::test, along with standard assertions like assertSee and assertSet. You can also assert that search and sort properties produce the expected query results. Keeping those tests focused on filtering and pagination behaviour gives good coverage without brittle markup assertions.
Is Laravel Simple DataTables suitable for production and large datasets?
Yes, the package performs searching, sorting, and pagination on the server side, so it does not load entire tables into memory or the browser. For production, make sure the columns you mark searchable or sortable are indexed in your database where appropriate. You should also review your query for eager loading needs to avoid N+1 problems when rendering relationships.
How does Laravel Simple DataTables compare to Yajra DataTables or Livewire PowerGrid?
Laravel Simple DataTables is intentionally lightweight and tightly focused on Livewire components, offering search, sorting, pagination, and column configuration with minimal setup. Yajra Laravel DataTables is a broader DataTables integration that often pairs with Blade and jQuery, while Livewire PowerGrid ships many additional features like filters, bulk actions, and exports. Choose this package when you want a small, fluent Livewire table without the extra surface area.
Is milenmk/laravel-simple-datatables actively maintained and where do I report issues?
The package is hosted on GitHub at milenmk/laravel-simple-datatables, where you can review releases, commits, and open issues to gauge activity. Bug reports and feature requests should be filed through the repository's issue tracker. Before upgrading, check the changelog and composer constraints to avoid breaking changes in your Livewire components.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource