Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Cartalyst
Tags
TaggableInterface
scopeWithTag
Cartalyst\Tags\TaggableInterface::scopeWithTag PHP Method
TaggableInterface Interface Documentation
显示文件
Open project: cartalyst/tags
scopeWithTag()
public
static
method
Returns the entities with one of the given tags.
public
static
scopeWithTag
(
Builder
$query
,
string
|
array
$tags
,
string
$type
= 'slug' ) :
Builder
$query
Illuminate\Database\Eloquent\Builder
$tags
string
|
array
$type
string
return
Illuminate\Database\Eloquent\Builder
public static function scopeWithTag(Builder $query, $tags, $type = 'slug');
TaggableInterface
addTag
allTags
createTagsModel
getSlugGenerator
getTagsDelimiter
getTagsModel
prepareTags
removeTag
scopeWhereTag
scopeWithTag
scopeWithoutTag
setSlugGenerator
setTags
setTagsDelimiter
setTagsModel
tag
tags
untag