Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Build Tables Based on Eloquent Models with Inertia Table

    Build Tables Based on Eloquent Models with Inertia Table

    June 28, 2024

    Inertia Table is the ultimate table for Inertia.js with built-in query builder support. Inertia Table is included with the premium Inertia UI, a suite of packages designed for Laravel, Vue, and Tailwind CSS created by Pascal Baljet. The table component makes it super easy to build tables based on your Eloquent Models with the following features:

    Sorting, including support for related models
    Pagination with a customizable number of items per page
    Toggleable columns
    Search with support for related models
    Extensive filtering options (text, date, boolean, sets, etc.)
    Row links, actions and bulk actions with customizable confirmation dialogs
    Export to CSV, Excel, and PDF
    Dark mode support
    Create Inline tables
    And more

    You can create class-based tables using the provided make:inertia-table command, and you can also use the package’s anonymous table builder on the fly:

    use AppModelsUser;
    use InertiaUITableColumns;
    use InertiaUITableFilters;

    class UsersController
    {
    public function index()
    {
    return inertia(‘Users’, [
    ‘users’ => Table::build(
    resource: User::class,
    columns: [
    ColumnsTextColumn::make(‘name’),
    ],
    filters: [
    FiltersTextFilter::make(‘name’),
    ],
    ),
    ]);
    }
    }

    At the time of writing, this package requires either MySQL 8, PostgreSQL 14, or SQLite 3, as well as Tailwind CSS 3.4+ and Vue 3.4+ with a React version in the works.

    A demo is available to see Inertial Table in action at table-demo.inertiaui.com. You can get started with Inertia.js Table by purchasing a license (valid for a single project) on the Inertia Table website.

    The post Build Tables Based on Eloquent Models with Inertia Table appeared first on Laravel News.

    Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.

    Source: Read More 

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleAccelerating digital transformation means creating a great engineering culture
    Next Article How to Configure ServiceNow Catalog Items for Microsoft Search

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-4610 – WordPress WP-Members Membership Plugin Stored Cross-Site Scripting Vulnerability

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Kingdom Come: Deliverance 2’s new Patch 1.2 update brings a laundry list of over 1,000 fixes — here are the patch notes

    News & Updates

    Universal Design for Visual Disabilities in Healthcare – Increase Safety – 14

    Development

    CodeSOD: A Mid Query

    Development

    Must-Have Design Tools for Web Creators in 2024

    Development
    Hostinger

    Highlights

    Re-Highlight – powerful syntax highlighter

    February 5, 2025

    Re-Highlight is a powerful syntax highlighter, which is a sub-module of the Reqable project. The…

    How RAG helps Transformers to build customizable Large Language Models: A Comprehensive Guide

    June 2, 2024

    Unsecured Tunneling Protocols Expose 4.2 Million Hosts, Including VPNs and Routers

    January 20, 2025

    European Accessibility Act : What You Need to Know

    January 23, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.