How to Generate Sitemaps Using Laravel on the Fly

Written by spekulatius | Published 2020/03/30
Tech Story Tags: laravel | seo | web-crawlers | laravel-tips-and-tricks | php7 | github | programming | web-development | web-monetization

TLDR Sitemaps are XML-files containing structured data about the pages of the website. They are helpers for search-engines to discover all relevant pages and content on a website. If you are using a framework such as Laravel you can create these on the fly or whenever you publish or update your content. It's heavily reliant on PHP Spider, a crawler package for PHP. The sitemap crawler crawler uses some regex to identify the most interesting parts of the site. More detail can be found on the GitHub repo for Laravel-Sitemaps.via the TL;DR App

no story

Written by spekulatius | Building side-projects and learning new stuff every day.
Published by HackerNoon on 2020/03/30