Skip to content

Installation

Requirements

  • PHP 8.2+ (8.3+ on Laravel 13)
  • Laravel 11, 12, or 13
  • spatie/laravel-sitemap ^7.0 or ^8.0 — optional, required only for sitemap generation

Install the package

bash
composer require rankbeam/laravel-seo
php artisan vendor:publish --tag=seo-config
php artisan migrate

That's the whole install. The service provider and the SEO facade are auto-discovered; the two migrations create the only tables the package owns:

TablePurpose
seo_metaExplicit per-model values (morph + locale)
seo_defaultsGlobal, model-type, and route defaults

Optional: sitemaps

Sitemap generation wraps spatie/laravel-sitemap:

bash
composer require spatie/laravel-sitemap

See the sitemap registry guide for sources and generation.

Upgrading from v1?

If your app used fibonoir/laravel-seo v1, read Upgrading from v1 first — the vendor, the namespace, and the package surface all changed, and v1 may have published files that fight the v2 config.

Companion packages

PackageWhat it addsLicense
rankbeam/laravel-seo-filamentSEO section for Filament 4/5 resource formsMIT
rankbeam/laravel-seo-proQueued site scans, redirect manager, 404 monitor — on any Laravel app, with an optional Filament dashboardCommercial

rankbeam/laravel-seo is released under the MIT License.