Larval framework upated to v5.6.33
Updated laravel frameowrk version to as suggested for security patch update which was released in v5.6.30
This commit is contained in:
0
vendor/nicolaslopezj/searchable/LICENSE.txt
vendored
Normal file → Executable file
0
vendor/nicolaslopezj/searchable/LICENSE.txt
vendored
Normal file → Executable file
0
vendor/nicolaslopezj/searchable/README.md
vendored
Normal file → Executable file
0
vendor/nicolaslopezj/searchable/README.md
vendored
Normal file → Executable file
0
vendor/nicolaslopezj/searchable/composer.json
vendored
Normal file → Executable file
0
vendor/nicolaslopezj/searchable/composer.json
vendored
Normal file → Executable file
@@ -242,7 +242,12 @@ trait SearchableTrait
|
||||
|
||||
$relevance_count=number_format($relevance_count,2,'.','');
|
||||
|
||||
$query->havingRaw("$comparator >= $relevance_count");
|
||||
if ($this->getDatabaseDriver() == 'mysql') {
|
||||
$bindings = [];
|
||||
} else {
|
||||
$bindings = $this->search_bindings;
|
||||
}
|
||||
$query->havingRaw("$comparator >= $relevance_count", $bindings);
|
||||
$query->orderBy('relevance', 'desc');
|
||||
|
||||
// add bindings to postgres
|
||||
@@ -339,4 +344,3 @@ trait SearchableTrait
|
||||
$original->withoutGlobalScopes()->setBindings($mergedBindings);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user