Merge branch 'main' of gitea.neatcn.com:gouki/laralog
Keep media-library covers while adopting sablog /show-{id}.shtml canonical URLs.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -48,7 +48,7 @@ class Category extends Model implements HasMedia
|
||||
|
||||
public function getUrlAttribute(): string
|
||||
{
|
||||
return route('category.show', $this->slug ?? $this->id);
|
||||
return route('category.show', $this->id);
|
||||
}
|
||||
|
||||
public function registerMediaCollections(): void
|
||||
|
||||
Reference in New Issue
Block a user