Slug: A URL-friendly string derived from a page title or name, using only lowercase letters, numbers, and hyphens. For example, the slug for "Getting Started" might be getting-started. A slug is the readable, URL-friendly part of a web address that identifies a page, such as getting-started in /docs/getting-started. It uses only lowercase letters, numbers and hyphens.
Slugs make URLs readable for people and give search engines a hint about the page's topic. They are usually generated from a title, with spaces turned into hyphens and special characters removed or converted.
What should you keep in mind with Slug?
Once a page is published, keep its slug stable. Changing it breaks existing links and loses search rankings unless you add a 301 redirect from the old URL. Make slugs unique, generate them carefully for titles with accents or symbols, and keep them short. Laravel's Str::slug() handles the conversion, and a unique index in the database prevents duplicates.
Use when reviewing or setting HTTP response headers for a web app or API - security headers (Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), CORS headers, caching headers (Cache-Control, ETag, Last-Modified, Vary) and cookies (Set-Cookie flags). Also use when a security scan reports missing headers.
Optimize cloud costs across AWS, Azure, GCP, and OCI through resource rightsizing, tagging strategies, reserved instances, and spending analysis. Use when reducing cloud expenses, analyzing infrastructure costs, or implementing cost governance policies.
SEO patterns, conventions, and audit for web applications. Use when implementing meta tags, structured data, Core Web Vitals, sitemaps, Open Graph, auditing SEO, or optimizing pages for search engines. Triggers on "audit SEO", "check SEO", "review SEO", or tasks involving search optimization, schema markup, or social sharing meta tags.