Download the PHP package kfoobar/laravel-seo-tools without Composer
On this page you can find all versions of the php package kfoobar/laravel-seo-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-seo-tools
Laravel SEO Tools
Breadcrumbs, robots.txt, and XML sitemaps for Laravel. Meta tags, Open Graph, and JSON-LD stay in laravel/head.
Installation
The package requires PHP 8.3+, Laravel 13.17+, and laravel/head.
Publish the config (optional):
Publish the breadcrumb view (optional):
Layout
/robots.txt and /sitemap.xml are registered automatically.
Breadcrumbs
Add crumbs in a controller (or anywhere before @head renders):
The last crumb is the current page: it is not linked, and it gets aria-current="page". The same trail is pushed to Head::schema(Schema::breadcrumbs()) so JSON-LD is rendered by @head without duplicating data.
If the trail is empty, neither the nav nor the schema is rendered.
robots.txt
Configured in config/seo.php, not per request:
This is the site-wide crawl file. Page-level meta robots still belongs to Laravel Head.
Sitemap
No crawler. URLs and models are read from config on each request, so the list stays the same under PHP-FPM and Octane. Each entry is a URL plus optional lastmod. Google ignores changefreq and priority.
toSitemapTag() may also return a URL string. Models are read with lazy(), so the full table is not loaded at once.
Set enabled to false before routes are cached if the application serves its own /sitemap.xml or /robots.txt. Rebuild the route cache after changing that flag.
Testing
All versions of laravel-seo-tools with dependencies
illuminate/contracts Version ^13.17
illuminate/routing Version ^13.17
illuminate/support Version ^13.17
illuminate/view Version ^13.17
laravel/head Version ^0.2