Weave Code
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

Simple Tables Laravel Package

tiagospem/simple-tables

View on GitHub
Deep Wiki
Context7

Livewire Simple Tables

A powerful Laravel Livewire package that simplifies the creation of interactive, feature-rich data tables with minimal effort.

Overview

Livewire Simple Tables is designed to help Laravel developers quickly build beautiful, interactive data tables without the complexity often associated with table implementations. This package leverages Laravel Livewire to provide a reactive, real-time user experience.

Livewire Simple Tables Example

Features

  • Easy to Set Up: Get started with just a few lines of code
  • Powerful Data Management: Built-in pagination, sorting, and searching
  • Customizable Filters: Create dependent, reactive filters to narrow down data
  • Interactive Actions: Add row-level actions and bulk operations
  • Row Detail Views: Expand rows to show additional information
  • Beautifully Styled: Built with Tailwind CSS for a clean, modern look
  • Highly Extensible: Create custom themes, filters, and components

Installation

composer require tiagospem/simple-tables

For detailed installation instructions, see the Installation Guide.

Quick Start

Create a Table Component

php artisan st:create table UsersTable

Implement the Table Component

<?php

namespace App\Livewire;

use App\Models\User;
use Illuminate\Database\Eloquent\Builder;
use TiagoSpem\SimpleTables\Column;
use TiagoSpem\SimpleTables\SimpleTableComponent;

class UsersTable extends SimpleTableComponent
{
    public function columns(): array
    {
        return [
            Column::text('ID', 'id')->sortable(),
            Column::text('Name', 'name')->sortable()->searchable(),
            Column::text('Email', 'email')->searchable(),
            Column::text('Created At', 'created_at')->sortable(),
        ];
    }

    public function datasource(): Builder
    {
        return User::query();
    }
}

Add to Your Blade View

<div>
    <h1>Users</h1>
    
    <div class="mt-4">
        <livewire:users-table />
    </div>
</div>

Documentation

For comprehensive documentation, visit https://tiagospem.github.io/livewire-simple-tables/

Requirements

  • PHP 8.3+
  • Laravel 10+
  • Livewire 3.5.4+
  • Tailwind CSS v3

License

This package is open-sourced software licensed under the MIT license.

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.
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver