\App\Repositories\EloquentArticleTagRepositoryEloquent

Class ArticleTagRepositoryEloquent

Summary

Methods
Properties
Constants
model()
boot()
saveTag()
updateTag()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

model()

model() : string

Specify Model class name

Returns

string

boot()

boot() 

Boot up the repository, pushing criteria

saveTag()

saveTag(  $data) : integer

保存标签

Parameters

$data

object 保存数据信息

Returns

integer —

标签ID

updateTag()

updateTag(  $id,   $data) : integer

更新标签

Parameters

$id

int 标签ID

$data

object 数据

Returns

integer —

标签ID