changes
This commit is contained in:
@@ -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()
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user