Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Head Laravel Package

laravel/head

Laravel Head offers a fluent API for managing your app's document head—titles, meta tags, Open Graph, canonical URLs, robots directives, performance hints, and structured data. Works with Blade, Livewire, and Inertia.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • SEO and discoverability as a first-class feature, not a template chore. The package centralizes <title>, meta descriptions, canonical URLs, and robots directives behind a fluent API, which turns "we should fix our meta tags" from a scattered refactor into a scoped, estimable story. It makes SEO work reviewable in code rather than buried in Blade partials.
  • Social and distribution surface area. Open Graph support means link previews on Slack, X, LinkedIn, and iMessage become a product-owned artifact. For any growth loop that depends on sharing (referrals, content marketing, product launches), this is directly tied to click-through on shared links.
  • Canonical URLs and crawl hygiene as a launch gate. Duplicate-content and indexation bugs are expensive to diagnose post-launch and cheap to prevent. Canonical + robots directives give us a switch to keep staging, preview, and tenant environments out of search results — a recurring source of incidents in multi-environment Laravel deployments.
  • Structured data → rich results. JSON-LD support unlocks eligibility for rich snippets (products, articles, FAQs, breadcrumbs), and as of v0.2.2 also Event schema — directly relevant to any product surface with ticketed or scheduled events: webinars, conferences, launches, classes, appointments, in-person or virtual sessions. Event rich results get date, location, price, and availability surfaced in the SERP, which is precisely the information a buyer needs before clicking. This is a measurable lever on SERP real estate, and it's usually the difference between "we do SEO" and "we appear in the carousel."
  • Performance hints as a perceived-speed lever. Preconnect/preload directives are a low-effort way to shave perceived latency on third-party-dependent pages. Worth an experiment slot when Core Web Vitals are on the roadmap.
  • Renderer-agnostic consistency across Blade, Livewire, and Inertia. This is the highest-leverage PM argument: without it, each rendering mode grows its own head-management convention, and every new page type re-litigates the question. One API means one set of acceptance criteria and one place to enforce brand/SEO standards.
  • Build vs. buy. The realistic alternative is hand-rolled layout partials plus ad-hoc helper functions — ~1–2 weeks of engineering plus indefinite maintenance, or an older community metadata package that may lag current Laravel versions. A first-party package with official docs collapses that decision.
  • Roadmap enablers. i18n/hreflang, per-tenant or per-locale metadata, CMS-driven meta fields, and programmatic SEO (thousands of generated landing pages) all become extensions of one abstraction rather than parallel implementations. The growing set of supported schema types (now including Event) means new page types can often ship with rich-result eligibility out of the box rather than as a follow-up ticket.

When to Consider This Package

Consider it when:

  • The application is on a currently supported Laravel version and renders HTML through Blade, Livewire, or Inertia — i.e., it actually owns its <head>.
  • SEO, sharing, or crawl hygiene is a named goal with stakeholder visibility (marketing, growth, or content teams consuming the output).
  • More than one team or developer touches page templates, or the app spans multiple renderers, so convention drift is a real risk.
  • The product has dynamic pages whose metadata is data-driven — product detail pages, listings, articles, profiles, event and session pages — where hardcoded tags don't scale.
  • You need a fast, auditable way to suppress indexing on non-production environments and staged rollouts.
  • You're standardizing on first-party Laravel packages to reduce third-party dependency review overhead.

Look elsewhere — or scope carefully — when:

  • The stack isn't Laravel, or the front end is a separate SPA/Next.js/Nuxt app where head management belongs to that framework.
  • The site is static or fully pre-rendered; build-time metadata tooling is a better fit.
  • You need full SEO operations: sitemap generation, redirect management, crawl auditing, keyword tracking, or log-file analysis. This package covers the document head only — expect to pair it with a sitemap package and an external audit tool.
  • The team is on an older Laravel version not covered by the package's support matrix; backporting is not a PM-level bet.
  • You need heavy hreflang matrices or per-market metadata on day one and the package's coverage is unproven — validate against a spike before committing a roadmap item.
  • Your rich-result needs are schema types beyond what's shipped (e.g. Recipe, JobPosting, Course, Video). Coverage is expanding release by release, but verify the specific type is supported before promising a marketing stakeholder a rich snippet.

Adoption risks to price in: the package is early — modest star count, zero recorded dependents, and a single-maintainer governance model despite the Laravel brand. v0.2.2 is a small additive release (Event schema, no breaking changes), but it's a useful signal: active maintenance and a steady cadence of schema-type additions, which is the kind of velocity you want to see in the first months of a dependency. Treat it as a version-pinned dependency, require a short spike against our highest-traffic templates, and keep a thin internal wrapper so swapping implementations is a contained change. The upside is that first-party Laravel packages tend to stabilize quickly and come with official docs and a published changelog, which lowers long-term documentation risk. Note that 0.x semver still permits breaking changes on minor bumps — read release notes before upgrading.

How to Pitch It (Stakeholders)

For executives (one paragraph): Search and social are already our largest unpaid acquisition channels, but the metadata that drives both is currently maintained by hand inside page templates — inconsistent across page types and invisible in planning. laravel/head is a small, free, officially maintained Laravel package that gives us one reviewed, testable place to manage titles, descriptions, canonical URLs, social previews, structured data, and no-index rules. It replaces roughly one to two weeks of custom plumbing with a dependency we can adopt incrementally, starting with the highest-traffic templates. The expected return is better click-through on shared links and search results, fewer duplicate-content and staging-indexation incidents, and eligibility for rich results — including event listings, which the latest release added support for. The main caveat is that the package is young, so we adopt it behind a thin internal wrapper and a version pin.

For engineering (summary): A fluent API for the document <head> — title, meta, Open Graph, canonical, robots, performance hints, JSON-LD — with support for Blade, Livewire, and Inertia. v0.2.2 adds Event schema to the JSON-LD helpers; additive, no breaking changes, so no migration work if we're already on 0.2.x. MIT licensed, first-party, official docs and changelog. It removes bespoke layout partials and per-renderer conventions in favor of one abstraction with testable output. Ask: (1) a one-day spike on our three highest-traffic templates to confirm output and caching behavior, (2) all metadata set through a thin project wrapper so the underlying package is replaceable and schema-type gaps are ours to fill, (3) automated assertions on the rendered head in our feature tests, so this doesn't silently regress — including one assertion per JSON-LD type we depend on. Note the package is early (minimal ecosystem adoption) and still on 0.x — pin the version, read release notes on every bump, and don't block a launch on it.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource