moell-peng/moell-blog

ArticleController

Closed this issue · 1 comments

$article = Article::findOrFail($id);
$article->read_count = $article->read_count + 1;
$article->save();

->

$article = Article::findOrFail($id);
$article->update(['read_count' => \DB::raw('read_count') + 1] );

@Birjemin 已修复