src/Builders/ModelBuilder.php
protected function makeSearchableFields(Collection $fields = null, $tableName)
    {
        if (is_null($fields))
        {
            return '';
        }

        $searchables = [];

        foreach ($fields as $field)
        {
            if (intval($field->search_priority) > 0)
            {
                $searchables[] = "'{$tableName}.{$field->name}' => {$field->search_priority}";
            }
        }

        return implode(",", $searchables);
    }
protected function makeSearchableFields(Collection $fields = null, $tableName)
    {
        if (is_null($fields))
        {
            return '';
        }

        $searchables = [];

        foreach ($fields as $field)
        {
            if (intval($field->search_priority) > 0)
            {
                $searchables[] = "'{$tableName}.{$field->name}' => {$field->search_priority}";
            }
        }

        return implode(",", $searchables);
    }
protected function makeSearchableFields ( Collection $ fields = null , $ tableName ) { if ( is_null ( $ fields ) ) { return '' ; } $ searchables = [ ] ; foreach ( $ fields as $ field ) { if ( intval ( $ field -> search_priority ) > 0 ) { $ searchables [ ] = "'{$tableName}.{$field->name}' => {$field->search_priority}" ; } } return implode ( "," , $ searchables ) ; }
Makes searchable fields

@param Collection $fields
@param string $tableName
@return string
Makes searchable fields