jasminecms/sitemap

Sitemap package for Jasmine

2.0.0 2022-11-22 07:26 UTC

This package is auto-updated.

Last update: 2024-11-22 12:04:29 UTC


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