微调
This commit is contained in:
@@ -26,6 +26,10 @@ class Category extends Model
|
||||
|
||||
public function getLinkAttribute()
|
||||
{
|
||||
if ($this->url) {
|
||||
return $this->url;
|
||||
}
|
||||
|
||||
return route('category.show', $this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user