Download the PHP package zk/laravel-datagrid without Composer
On this page you can find all versions of the php package zk/laravel-datagrid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zk/laravel-datagrid
More information about zk/laravel-datagrid
Files in zk/laravel-datagrid
Package laravel-datagrid
Short Description A lightweight and customizable DataGrid solution for Laravel, built with Blade components, lazy loading, and a powerful custom datagrid.js library for seamless frontend interactivity.
License MIT
Informations about the package laravel-datagrid
ZK DataGrid for Laravel
ZK DataGrid is a powerful and customizable data grid package for Laravel applications. It simplifies data representation with support for sorting, filtering, searching, pagination, and exporting.
✨ Features
- Data Grid Management – Easily create and manage data grids.
- Customizable Columns – Define and customize columns with type, formatting, search, and filter options.
- Actions & Mass Actions – Add row-level actions and bulk actions.
- Multiple Data Sources – Works with arrays, collections, and query builders.
- Blade Integration – Predefined Blade templates for easy rendering.
- Built-in Assets – Includes CSS & JS for interactivity and styling.
- Export Support – Export grid data with customizable formatters.
📦 Installation
Install via Composer:
⚙️ Configuration
After installation, publish the config and views:
🚀 Usage
Create a DataGrid Class
Example: App\DataGrid\PostGrid.php
In Controller:
🖥️ Rendering in Blade
⏳ Lazy Loading (AJAX)
Update your Blade template:
📤 Exporting Data
Export the grid data:
- All columns are exported by default.
- To exclude a column, add
'export' => falsein its definition. - To export all data (not paginated), options set ['all' => true].
- Use the
exportformatter for custom export logic:
🔍 Searchable and Filterable Columns
Searchable
Custom search query:
Filterable
Custom filter query:
Customize filter input:
🤝 Contributing
Contributions are welcome! Feel free to submit issues and pull requests to enhance the package.