refactor sitemap generation and navigation handling; remove old GenerateSitemap command, update to use tasks for better organization, and enhance navigation data retrieval
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Containers\AppStructure\Tasks;
|
||||
|
||||
use App\Containers\AppStructure\Models\MainSection;
|
||||
|
||||
class GetNavigationDataTask
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
return MainSection::with('subSections.pages')
|
||||
->orderBy('sort', 'asc')
|
||||
->get();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user