feat: 富文本编辑
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user