PHP code example of wizclumsy / sitemap

1. Go to this page and download the library: Download wizclumsy/sitemap 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/ */

    

wizclumsy / sitemap example snippets


Wizclumsy\Sitemap\SitemapServiceProvider::class,



return [
    url('/')
];



return [
    'changefreq' => 'monthly',
    'priority' => '0.8',
    'lastmod' => '2016-08-04',
    'links' => [
        url('/'),
    ]
];



return [
    [
        'changefreq' => 'daily',
        'priority' => '1.0',
        'links' => [
            App\Models\Resource::where('active', true)->get()->pluck('permalink'),
        ],
    ],
    [
        'changefreq' => 'monthly',
        'priority' => '0.8',
        'lastmod' => '2016-08-04',
        'links' => [
            url('/'),
        ],
    ],
];

php artisan vendor:publish --provider="Wizclumsy\Sitemap\SitemapServiceProvider" --tag=config