jasminecms / sitemap
Sitemap package for Jasmine
Installs: 3 148
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- jasminecms/jasmine: ^2.0.0
- spatie/laravel-sitemap: ^6.0
README
Sitemap package for Jasmine
Installation
composer require jasminecms/sitemap
Add a route for the sitemap.xml and in your action return
\JasmineSitemap::generate()
In your AppServiceProvider
Register your single pages/routes
\JasmineSitemap::registerRoute($url|$route_name, $params, $cb)
Register your models
\JasmineSitemap::registerModel($query)
Your model should implement Spatie\Sitemap\Contracts\Sitemapable