\App\Repositories\EloquentArticleRepositoryEloquent

Class ArticleRepositoryEloquent

Summary

Methods
Properties
Constants
model()
boot()
saveArticle()
updateArticle()
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

saveArticle()

saveArticle(  $article_info) : integer

保存文章

Parameters

$article_info

\Illuminate\Http\Response 文章信息

Returns

integer —

文章ID

updateArticle()

updateArticle(  $id,   $article_info) 

Parameters

$id
$article_info