fix: tree & guide

This commit is contained in:
2026-03-24 09:21:21 +08:00
parent b74ba1a3f8
commit 42a879e961
15 changed files with 2619 additions and 601 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class GuidePageEdge extends Model
{
protected $fillable = [
'guide_id',
'from_page_id',
'to_page_id',
'label',
'sort',
];
public function guide()
{
return $this->belongsTo(Guide::class);
}
public function fromPage()
{
return $this->belongsTo(GuidePage::class, 'from_page_id');
}
public function toPage()
{
return $this->belongsTo(GuidePage::class, 'to_page_id');
}
}