FIX: fix saving 'viewed' column with updated_at
This commit is contained in:
@@ -163,4 +163,10 @@ class Content extends Model
|
||||
|
||||
return parent::save($options);
|
||||
}
|
||||
|
||||
public function view()
|
||||
{
|
||||
$this->timestamps = false;
|
||||
$this->increment('viewed');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user