Example #1
0
File: Post.php Project: unbolt/imp
 public function getViewCountAttribute()
 {
     return ThreadView::where('post_id', $this->id)->count();
 }