الصفحات · Laravilt
Text Filter
Text-based filtering
Text-based filtering with operators.
Basic Usage
php
Operators
php
Case Sensitivity
php
Custom Operator
php
Methods
| Method | Description |
|---|---|
make(string) | Create filter |
contains() | Substring match |
exact() | Exact match |
startsWith() | Prefix match |
endsWith() | Suffix match |
caseSensitive(bool) | Case sensitive |
operator(string) | Custom operator |
SQL Generated
| Method | SQL |
|---|---|
contains() | WHERE col LIKE '%val%' |
exact() | WHERE col = 'val' |
startsWith() | WHERE col LIKE 'val%' |
endsWith() | WHERE col LIKE '%val' |
Related
- Select Filter - Dropdown
- Boolean Filter - Toggle