spatie/laravel-paginateroute
Adds a Laravel route macro to paginate via clean, translatable URLs like /news/page/2 instead of ?page=2. Includes a paginate route method and facade for generating pagination links. Note: this package is abandoned/unsupported—fork if needed.
/products/page/2 vs. ?page=2) or localized pagination (e.g., /news/pagina/2 for Dutch users). Critical for global products or content-heavy platforms (e.g., blogs, e-commerce).Adopt if:
/blog/page/3) for SEO, localization, or cleaner URLs.Look elsewhere if:
/products?page=2) for simplicity or API consistency."This package lets us offer cleaner, SEO-friendly pagination URLs (e.g., /products/page/2 instead of ?page=2), which improves user experience and supports our global expansion. It’s a low-risk, high-reward solution—no custom development needed, and it aligns with our roadmap for localized content. The trade-off is minimal: we’d need to monitor forks or build a lightweight wrapper if maintenance becomes critical."
*"Spatie’s laravel-paginateroute adds a paginate() route method to Laravel, replacing query-string pagination with route-based links (e.g., /posts/page/3). Benefits:
/blog/pagina/2 work natively for multilingual sites."This change will make pagination links look more natural in our UI—users will see ‘Page 2’ as a clickable route (/products/page/2) instead of a query string. It also supports localized labels (e.g., ‘Seite 2’ in German), which aligns with our global design system. No user-facing changes required; just cleaner URLs under the hood."
How can I help you explore Laravel packages today?