feat: 富文本编辑

This commit is contained in:
2026-04-16 16:20:52 +08:00
parent 295cf12899
commit 6acd0ccad0
8 changed files with 150 additions and 40 deletions

View File

@@ -9,7 +9,7 @@ class GuidePage extends Model
protected $fillable = [
'guide_id',
'title',
'html_url',
'content',
'options',
];
@@ -25,6 +25,11 @@ class GuidePage extends Model
});
}
public function getUriAttribute(): string
{
return route('guides.pages.show', $this->id);
}
public function guide()
{
return $this->belongsTo(Guide::class);