Nicolaslopezj\Searchable\SearchableTrait::scopeSearch PHP Méthode

scopeSearch() public méthode

Creates the search scope.
public scopeSearch ( Builder $q, string $search, float | null $threshold = null, boolean $entireText = false, boolean $entireTextOnly = false ) : Builder
$q Illuminate\Database\Eloquent\Builder
$search string
$threshold float | null
$entireText boolean
$entireTextOnly boolean
Résultat Illuminate\Database\Eloquent\Builder
    public function scopeSearch(Builder $q, $search, $threshold = null, $entireText = false, $entireTextOnly = false)
    {
        return $this->scopeSearchRestricted($q, $search, null, $threshold, $entireText, $entireTextOnly);
    }