app/Console/Commands/GenerateSitemap.php
/**
     * Execute the console command.
     *
     * @return int
     */
Execute the console command.
@return int
Execute the console command . @return int
public function handle()
    {
        SitemapGenerator::create(config('app.url'))->getSitemap()->writeToDisk('public', 'sitemap.xml');
    }
public function handle ( ) { SitemapGenerator :: create ( config ( 'app.url' ) ) -> getSitemap ( ) -> writeToDisk ( 'public' , 'sitemap.xml' ) ; }
Execute the console command.
Execute the console command .
// modify this to your own needs