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
Data Grid Laravel

Data Grid Laravel Laravel Package

cartalyst/data-grid-laravel

Laravel integration for Cartalyst Data Grid, making it easy to build configurable, sortable, filterable data tables. Define columns fluently, render grids in Blade views, and customize presentation for admin listings and reports.

View on GitHub
Deep Wiki
Context7

Laravel integration for the Cartalyst Data Grid package.

Frequently asked questions about Data Grid Laravel
How do I install cartalyst/data-grid-laravel?
Install it with Composer by running composer require cartalyst/data-grid-laravel in your Laravel project. The package is a Laravel integration layer for the core Cartalyst Data Grid library, so Composer will pull that dependency in as well. Afterwards, check the README to confirm whether the service provider is registered through Laravel package auto-discovery or must be added manually.
Does cartalyst/data-grid-laravel support Laravel 10 and 11?
The release line referenced here is v4.1.0, which only documents added PHP 8 support, so Laravel 10 and 11 compatibility is not confirmed. PHP 8 support only translates into modern Laravel support if the illuminate/* constraints in composer.json actually reach those versions. Read composer.json and run your test suite against your target Laravel version before adopting.
Which PHP versions does cartalyst/data-grid-laravel support?
Version 4.1.0 is described as adding PHP 8 support alongside the existing PHP 7 line, but the note does not state an exact constraint. It is unclear whether the floor moved or whether the constraint now reads something like ^7.4 || ^8.0, and which 8.x minors are covered. Confirm this by reading the php constraint in composer.json and checking the CI matrix.
How do I define columns for a data grid in Laravel?
Columns are defined fluently through the package's grid API, so you declare each column and its behaviour in PHP rather than hand-writing table markup. This matches the fluent definition style of the underlying Cartalyst Data Grid package. Consult the README for the exact method names exposed by the column builder.
How do I render a data grid in a Blade view?
The package is designed so that a grid defined in PHP can be rendered directly from a Blade template, keeping the presentation layer thin. You typically build the grid definition in a controller or a dedicated class and then output it in the view. See the README for the specific render call or Blade usage.
Can I sort and filter data grid columns?
Yes, sortable and filterable columns are the core purpose of the package, which is aimed at admin listings and reports that users need to explore. Sorting and filtering behaviour is configured as part of the column definitions rather than in custom query code. The available options per column type are documented in the README.
Do I need to publish config or migrations for cartalyst/data-grid-laravel?
That is not established by the v4.1.0 release note, which only mentions PHP 8 support. Many Laravel integration packages ship optional publishable config via vendor:publish, but whether this one includes config or migrations must be confirmed in the source. Read the service provider's register and boot methods before assuming either way.
How do I test a data grid in my Laravel application?
Test grids as you would any other Laravel output: build the grid in a test case and assert on the rendered result or the underlying data set. Before relying on it, check whether the package's own suite runs on your PHP and Laravel versions and whether deprecation notices are treated as failures. If deprecations are merely suppressed, green tests say less about production cleanliness.
Is cartalyst/data-grid-laravel production ready?
Treat it as reasonable to trial but not yet proven as a production dependency. The available evidence is a single minor release adding PHP 8 support, with little changelog detail, no visible CI matrix, and no published security policy. Verify the illuminate constraints, deprecation handling, and maintainer model before committing.
What are the alternatives to cartalyst/data-grid-laravel?
Common alternatives are Livewire-based table packages, JavaScript grid libraries such as DataTables, or writing your own query builder plus Blade table. The trade-off is that this package gives you server-side fluent column definitions instead of a rich client-side grid. Choose based on whether you need server-rendered grids or heavy client interaction.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo