← Back to Projects

Laravel SEO Tools

laravel-package
Laravel SEO Tools Screenshot

About the Project

A comprehensive SEO toolkit built as a Laravel package that handles all aspects of on-page SEO. It provides meta tag generation, Open Graph support, JSON-LD structured data, sitemap generation, and URL redirect management.

The HasSeoFields trait can be applied to any Eloquent model to add per-record SEO fields with an intelligent fallback chain: model meta → SeoPage record → config defaults. This makes it easy to add SEO to existing models like services, projects, or blog posts.

Middleware automatically injects SEO data into views and handles URL redirects with hit tracking. Blade components (x-seo::head, x-seo::og, x-seo::schema, x-seo::breadcrumbs) make it simple to render meta tags in layouts.

The Filament 4 admin panel includes resources for managing page-level SEO settings and URL redirects. An artisan command generates sitemaps from configured static URLs and dynamic model routes.

Key Features

  • HasSeoFields trait for any Eloquent model
  • Meta tag generation with fallback chain
  • Open Graph & Twitter Card support
  • JSON-LD structured data (Organization, BreadcrumbList)
  • Sitemap generation (static + dynamic URLs)
  • URL redirect management with hit tracking
  • SEO middleware for automatic injection
  • Reusable Blade components
  • SeoFieldsSection for Filament forms
  • Cache layer with configurable TTL
  • Artisan commands for sitemap & field migration