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

Datagrid Laravel Package

aginev/datagrid

aginev/datagrid is a Laravel package for quickly building interactive data grids from Eloquent models. It supports column definitions, sorting, filtering, pagination, custom rendering, and row actions, making admin tables easy to add with minimal code.

View on GitHub
Deep Wiki
Context7

Datagrid for Laravel v5

Frequently asked questions about Datagrid
What is aginev/datagrid used for in Laravel?
aginev/datagrid is a Laravel package for building interactive data grids from Eloquent models, mainly for server-rendered Blade admin screens. It supports column definitions, sorting, filtering, pagination, custom rendering, and row actions with minimal code. It is best suited to legacy Laravel 5.x CRUD interfaces, not API-first or SPA applications.
Does aginev/datagrid support Laravel 10 or Laravel 11?
No, the package is described as a datagrid for Laravel v5 and its last release was in February 2021. It is a poor fit for greenfield Laravel 10 or Laravel 11 applications and may fail Composer or PHP compatibility checks. For modern Laravel versions, prefer a maintained grid package, Filament-style tooling, or a thin custom Blade and Eloquent implementation.
How do I install aginev/datagrid in a Laravel 5 app?
Install it with Composer using composer require aginev/datagrid, then pin an exact version in composer.json for reproducibility. Register the service provider if your Laravel version does not auto-discover it, and publish any config, views, or assets as directed by the package documentation. Run the install in a branch or containerized compatibility matrix before using it in a shared admin area.
Is aginev/datagrid safe to use in production?
It can be used tactically in an existing Laravel 5.x Blade admin area, but it carries high lifecycle risk because Laravel 5.x is end-of-life and the package has a stale release history and low community signal. Treat it as a vendored dependency that your team may need to fork and patch. Add authorization tests, query reviews, dependency CVE monitoring, a feature flag, and a rollback or replacement plan before broad rollout.
How do I add sorting, filtering, and pagination with aginev/datagrid?
Define the grid columns and configure the package’s sorting, filtering, and pagination options for the Eloquent query behind the grid. Validate the generated SQL and query counts, especially when filters, joins, and counts are combined. Add database indexes for common filters and sort columns, and test behavior against production-sized datasets rather than only small fixtures.
Can aginev/datagrid handle row actions and authorization?
The package supports row actions, which makes it useful for admin tables that need edit, view, or delete controls. Authorization must still be enforced in your Laravel policies, gates, or action handlers rather than relying on hidden buttons in the UI. Write tests that confirm unauthorized users cannot execute row actions through direct requests.
What are good alternatives to aginev/datagrid for Laravel admin tables?
For modern Laravel applications, consider maintained grid or admin panel packages, Livewire or Inertia based tooling such as Filament-style stacks, or a small custom Blade and Eloquent grid. For legacy Laravel 5.x apps, a thin internal grid or a forked version of this package may be more practical than a major platform change. Evaluate maintenance status, Laravel version support, testing coverage, and upgrade path before choosing.
How should I test aginev/datagrid grids in a Laravel app?
Write characterization tests for column rendering, sorting, filtering, pagination, row actions, and authorization behavior. Test against the database engines you actually use, such as MySQL or PostgreSQL, and include PHP 7.x and PHP 8.x checks if an upgrade is possible. Monitor query counts and slow queries to catch N+1 patterns or expensive counts before release.
Does aginev/datagrid work well with large datasets?
Server-side pagination helps, but complex filters, sorting, counts, and row actions can still generate expensive queries or N+1 patterns. Add indexes, use cached counts where appropriate, enforce query limits, and validate performance on production-sized data. Review generated queries for complex joins and avoid unsafe raw filter handling.
Is aginev/datagrid still maintained, and should we fork it?
The last release was in February 2021 and the project has low community signal, so expect limited upstream maintenance and documentation. For a legacy Laravel 5.x requirement, plan to vendor or fork the package and own patches, security reviews, and compatibility checks. Document an exit plan to native Eloquent and Blade or a maintained grid package, and avoid making it a strategic platform dependency.
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.
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
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