调整视频详情页
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user