File manager - Edit - /var/www/payraty/helpdesk/app/Services/SitemapGenerator.php
Back
<?php namespace App\Services; use App\Models\Article; use App\Models\Category; use Common\Admin\Sitemap\BaseSitemapGenerator; class SitemapGenerator extends BaseSitemapGenerator { protected function getAppQueries(): array { return [ app(Article::class) ->where('draft', false) ->where('visibility', 'public') ->select(['id', 'title']), app(Category::class) ->select(['id', 'name']), ]; } protected function getAppStaticUrls(): array { return ['help-center']; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.93 |
proxy
|
phpinfo
|
Settings