public function scopeSearch($query, $term)
    {
        $columns = implode(',', $this->searchable);

        $query->whereRaw("MATCH ({$columns}) AGAINST (? IN BOOLEAN MODE)", $this->fullTextWildcards($term));

        // $term = $this->fullTextWildcards($term);
        //
        // $query
        //     ->selectRaw('MATCH (title, content) AGAINST (? in boolean mode) as REL', [$term])
        //     ->whereRaw('MATCH (title, content) AGAINST (? in boolean mode)' , $term)
        //     ->orderBy('REL', 'desc')
        //     ;

        return $query;
    }