调整视频详情页

This commit is contained in:
2021-11-29 16:05:46 +08:00
parent 044a3c560a
commit 6849e908c7
7 changed files with 175 additions and 87 deletions

View File

@@ -11,9 +11,28 @@ class Video extends Model
use HasCovers,
BelongsToCategory;
public function getlinkUrlAttribute(): string
/**
* Notes: 返回视频地址
*
* @Author: 玄尘
* @Date: 2021/11/29 15:43
* @return string
*/
public function getLinkUrlAttribute(): string
{
return $this->parseImageUrl($this->link);
}
/**
* Notes: 返回视频详情地址
*
* @Author: 玄尘
* @Date: 2021/11/29 15:43
* @return string
*/
public function getShowLinkAttribute(): string
{
return route('video.show', $this);
}
}