PHP Interface Owl\Repositories\TagFtsRepositoryInterface

显示文件 Open project: owl/owl

Public Methods

Method Description
firstOrCreateByIdAndWords ( integer $tag_id, string $words ) : Illuminate\Database\Eloquent\Model get a tagFts data or Create a tagFts data by ID and Words.
match ( string $string, integer $limit = 10, integer $offset ) : array get tags data by string for FullTextSearch.

Method Details

firstOrCreateByIdAndWords() public method

get a tagFts data or Create a tagFts data by ID and Words.
public firstOrCreateByIdAndWords ( integer $tag_id, string $words ) : Illuminate\Database\Eloquent\Model
$tag_id integer
$words string
return Illuminate\Database\Eloquent\Model

match() public method

get tags data by string for FullTextSearch.
public match ( string $string, integer $limit = 10, integer $offset ) : array
$string string
$limit integer
$offset integer
return array