Skip to content

Releases: hnhdigital-os/laravel-model-search

v1.0.9

28 Aug 00:58
Compare
Choose a tag to compare

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

16 Aug 15:34
Compare
Choose a tag to compare
Added missing allowed operators for filtering that uses a scope

v1.0.7

13 Aug 13:36
Compare
Choose a tag to compare
Updated inline operator parsing to match regardless of whitespace

v1.0.6

05 Mar 03:43
4e1b319
Compare
Choose a tag to compare
Merge pull request #6 from hnhdigital-os/analysis-qrOKGG

Apply fixes from StyleCI

v1.0.5

01 Mar 05:06
Compare
Choose a tag to compare
Removed array_* helpers

v1.0.4

28 Jul 14:20
Compare
Choose a tag to compare
Aded source config for searchable attributes

v1.0.3

26 Feb 12:22
Compare
Choose a tag to compare
Added UUID filtering; ModelSchema integration

v1.0.2

09 Jan 04:18
Compare
Choose a tag to compare
Fixed multiple attribute wildcard query

v1.0.1

09 Jan 03:50
Compare
Choose a tag to compare
Correctly convert an expression

v1.0.0

09 Jan 00:36
Compare
Choose a tag to compare
Fixed ruleset name