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,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Containers\AppStructure\Tasks;
|
||||
|
||||
use App\Containers\User\Models\User;
|
||||
|
||||
class GetUsersForSitemapTask
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
return User::query()
|
||||
->whereHas('userDetail', function ($q) {
|
||||
$q->where('is_only_worker', false);
|
||||
})
|
||||
->get();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user