1. Go to this page and download the library: Download artur/sitemap_generator_l5 library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
'models' => [
'Tree_1' => [
//If this param is set model name will be taken from here rather then from array key
//This allows to have multiple request to single model without overriding results
'model' => "Tree",
// Valid values are "always|hourly|daily|weekly|monthly|yearly|never"
'changefreq' => "daily",
// Valid values range from 0.0 to 1.0.
'priority' => 0.7,
// Method that will be called upon model to get Url of entity
// Default(if removed) - "getUrl" or set your method name
'url_method' => "getUrl",
// Optional property. Default(if removed) - "updated_at", set false to disable or set your field name
'lastmod_field' => "updated_at",
// Optional property. Default(if removed) - "is_active", set false to disable or set your field name
'active_field' => "is_active",
// Optional property. Allows to specify query, can be removed if not
'custom_links' => [
'/',
],
'custom_links' => [
'/' => [
//If this param is set url be taken from here rather then from array key
'url' => "/",
// Valid values are "always|hourly|daily|weekly|monthly|yearly|never"
'changefreq' => "daily",
// Valid values range from 0.0 to 1.0.
'priority' => 1,
// Valid values is anything parsable by strtotime method
'lastmod' => "2017-02-20 13:32:09",
],
],
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.