data-table/kimsang
最新稳定版本:v1.2.6
Composer 安装命令:
composer require data-table/kimsang
包简介
Reusable Laravel DataTable helper
README 文档
README
A reusable Laravel DataTable helper package designed for searching, sorting, and pagination, with PostgreSQL-safe global search, integer compatibility, and operator-based filtering.
This package is built for real-world admin panels, API backends, and frontend data tables.
✨ Features
- ✅ Laravel 10 & 11 compatible
- ✅ PostgreSQL-safe (
ILIKE, reserved keyword handling) - ✅ Works with string & integer columns
- ✅ Operator-based global search
- ✅ Safe parameter binding (SQL injection protected)
- ✅ Supports Eloquent Model, Builder, or Model instance
- ✅ Ready for Composer & Packagist
Search Application Logic
The applySearch method applies search conditions dynamically based on a
specified operator. It supports both text and numeric columns by safely
casting values to text when necessary and performs case-insensitive matching
using PostgreSQL ILIKE.
This approach allows a single global search to work across mixed column types while remaining safe and performant.
📦 Installation
composer require data-table/kimsang
统计信息
- 总下载量: 268
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-08