二次改版

This commit is contained in:
2022-06-29 17:03:47 +08:00
parent 2288b76e4e
commit 619e493b0e
168 changed files with 4676 additions and 1759 deletions

View File

@@ -9,8 +9,9 @@ trait HasOneCover
/**
* 拼接图片全地址
* @author 玄尘 2020-03-05
*
* @return string
* @author 玄尘 2020-03-05
*/
public function getCoverPathAttribute(): ?string
{
@@ -21,4 +22,20 @@ trait HasOneCover
}
}
/**
* Notes: 获取标签
*
* @Author: 玄尘
* @Date: 2022/6/28 15:25
* @return string|null
*/
public function getLabelPathAttribute(): ?string
{
if ($this->label) {
return Storage::url($this->label);
} else {
return '';
}
}
}