ArticleController
Closed this issue · 1 comments
Birjemin commented
$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] );
moell-peng commented
@Birjemin 已修复