This commit is contained in:
F4ilji
2026-04-10 09:01:47 +05:00
parent 1c6f09ed80
commit 9e35cf848d
25 changed files with 195 additions and 155 deletions
@@ -20,6 +20,6 @@ class SubSection extends Model
public function pages() : HasMany
{
return $this->hasMany(Page::class);
return $this->hasMany(Page::class)->orderBy('sort', 'asc');
}
}
@@ -19,8 +19,7 @@ class PageNavigateResource extends JsonResource
'title' => $this->title,
'slug' => $this->slug,
'path' => $this->path,
'is_url' => $this->is_url,
'icon' => $this->icon
'is_url' => $this->is_url
];
}
}
@@ -23,7 +23,6 @@ class PageResource extends JsonResource
'path' => $this->path,
'is_url' => $this->is_url,
'settings' => $this->settings,
'icon' => $this->icon,
'section' => $this->section ? $this->section->title : null,
'created_at' => $this->created_at->diffforhumans()
];