mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
新增文章统计;新增浏览文章查看
This commit is contained in:
@@ -14,6 +14,11 @@ class PostVisit extends Model
|
||||
{
|
||||
//
|
||||
|
||||
public function post()
|
||||
{
|
||||
return $this->belongsTo(Post::class, 'post_id');
|
||||
}
|
||||
|
||||
public function getAvatarSrcAttr()
|
||||
{
|
||||
$value = $this->getAttr('avatar');
|
||||
|
||||
Reference in New Issue
Block a user