Releases: hnhdigital-os/laravel-model-search
Releases · hnhdigital-os/laravel-model-search
v1.0.9
Properly processes the following configuration where related models are used in this single search attribute.
Now works through these attribute names and adds it to the array that then makes the corresponding joins.
protected $search_relationships = [
'manufacturer',
];
protected $search_attributes = [
'lookup' => [
'title' => 'Name',
'attribute' => [
'display.product_number',
'manufacturer.name',
'display.description',
"#CONCAT(manufacturer.name, ' ', display.product_number)",
],
'filter' => 'string',
],
];
public function manufacturer()
{
return $this->belongsTo(Manufacturer::class);
}
v1.0.8
Added missing allowed operators for filtering that uses a scope
v1.0.7
Updated inline operator parsing to match regardless of whitespace
v1.0.6
Merge pull request #6 from hnhdigital-os/analysis-qrOKGG Apply fixes from StyleCI
v1.0.5
Removed array_* helpers
v1.0.4
Aded source config for searchable attributes
v1.0.3
Added UUID filtering; ModelSchema integration
v1.0.2
Fixed multiple attribute wildcard query
v1.0.1
Correctly convert an expression
v1.0.0
Fixed ruleset name