Warning
This package is no longer actively maintained, feel free to create a fork if you need it.
The project requiring this package has been discontinued.
Generate a sitemap of your Laravel app.
- PHP >= 7.4
- Laravel >= 8.x
You can install this package using Composer.
composer require sertxudeveloper/laravel-sitemap
First you need to initialize the sitemap.
$sitemap = Sitemap::create();
Next you should add the routes to the sitemap.
$sitemap->add(Url::create(route("main.index")));
After adding all the routes you want in the sitemap, you should save it in a file.
$sitemap->writeToFile(public_path('sitemap.xml'))
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.
Copyright © 2022 Sertxu Developer