illuminatech/url-trailing-slash
Laravel middleware that enforces consistent trailing slashes by redirecting requests to the canonical URL form. Avoid duplicate-content SEO issues and keep links predictable, with flexible per-route configuration for when a trailing slash should or shouldn't appear.
/pricing and /pricing/ are two URLs to search engines. Deciding on one canonical form and enforcing it (via 301 redirect) is a concrete SEO hygiene decision this package executes; it supports the question "do we have a URL normalization policy, and is it enforced?"Adopt when:
Look elsewhere / build it yourself when:
NOASSERTION is not a recognized permissive license. Before adopting, legal must confirm terms; if unclear, treat it as un-adoptable until resolved. This is the single biggest adoption risk here./foo/ → /foo", a tiny middleware or web-server rule is lower risk and zero-dependency.For executives: This is a small, low-cost piece of SEO hygiene. It ensures each page has exactly one canonical URL rather than two, which protects search ranking and keeps our analytics and caching clean. It's not a feature users see; it's plumbing that prevents a common class of avoidable SEO and reporting noise. The only real risk is governance — the package's license is unclassified, so legal sign-off is required before we make it a dependency.
For engineering: A Laravel middleware that normalizes trailing slashes on routes and 301-redirects the non-canonical form, configurable per route group (force-with or force-without). It's roughly a day of trivial in-house work, so the adoption case rests on convenience, not capability. Recommend a short spike: confirm license terms, check Laravel version support and recent commit activity, then decide package vs. ~60 lines of middleware. If the license stays ambiguous, build it in-house — the implementation is small and the maintenance burden is negligible either way.
How can I help you explore Laravel packages today?