PHPackages                             andreazorzi/search-table - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. andreazorzi/search-table

ActiveLibrary[Search &amp; Filtering](/categories/search)

andreazorzi/search-table
========================

Easy to use models table

1.1.0(4mo ago)01.4k↓50%[1 issues](https://github.com/andreazorzi/search-table/issues)2MITBladePHP ^8.2

Since Nov 27Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/andreazorzi/search-table)[ Packagist](https://packagist.org/packages/andreazorzi/search-table)[ Docs](https://github.com/andreazorzi/search-table)[ RSS](/packages/andreazorzi-search-table/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (11)Used By (2)

SearchTable
===========

[](#searchtable)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7c0134320bed08f2795144523eb5d8ef3a765eff122cb93ae47355c460f5e9f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e647265617a6f727a692f7365617263682d7461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andreazorzi/search-table)[![Total Downloads](https://camo.githubusercontent.com/5d10595e4c65e5f8df316e0442b95f3b9218ffe3a5c8f5c83cf2fcd56b6a0e7c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e647265617a6f727a692f7365617263682d7461626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andreazorzi/search-table)

A Laravel package that adds dynamic data tables to Eloquent models with filtering, sorting, and customizable action buttons. Built with Bootstrap 5 and htmx for seamless, modern web applications.

What This Package Does
----------------------

[](#what-this-package-does)

This package transforms your Eloquent models into powerful, interactive data tables with:

- **Dynamic Data Tables** - Automatically generate tables from your models
- **Advanced Filtering** - Search and filter data with multiple criteria
- **Sorting Capabilities** - Sort by any column with ascending/descending options
- **Customizable Actions** - Add custom action buttons for each row
- **Real-time Updates** - htmx-powered interactions without page reloads
- **Bootstrap 5 Styling** - Modern, responsive UI components

All tables are fully responsive and provide a seamless user experience with instant filtering and sorting.

Requirements
------------

[](#requirements)

### Frontend Dependencies

[](#frontend-dependencies)

This package assumes you have the following assets available in your project:

- [Bootstrap 5](https://getbootstrap.com/) - for styling the generated tables and UI components
- [htmx](https://htmx.org/) - for handling AJAX requests and seamless interactions

Installation
------------

[](#installation)

1. ### Install the package:

    [](#install-the-package)

    ```
    composer require andreazorzi/search-table
    ```
2. ### Install frontend dependencies (if not already installed):

    [](#install-frontend-dependencies-if-not-already-installed)

    ```
    npm install bootstrap@5 htmx.org
    ```

Setup
-----

[](#setup)

### Controller Configuration

[](#controller-configuration)

Add the `SearchController` trait to any model controller you need to be searchable:

```
