Skip to content
iRaziul edited this page Mar 22, 2026 · 3 revisions

SeoKit Wiki

SeoKit is a Laravel SEO package for generating:

  • Meta tags
  • Open Graph tags
  • Twitter Cards
  • JSON-LD structured data

For most projects, the flow is simple:

  1. Install the package.
  2. Add @seoKit to your layout.
  3. Set metadata in your controller, service, or model.

Quick Start

Install the package:

composer require larament/seokit
php artisan seokit:install

Render SeoKit in your layout:

<head>
    @seoKit
</head>

Set page metadata:

use Larament\SeoKit\Facades\SeoKit;

public function show(Post $post)
{
    SeoKit::title($post->title)
        ->description($post->excerpt)
        ->image($post->featured_image)
        ->canonical(route('posts.show', $post));

    return view('posts.show', compact('post'));
}

Documentation

Getting Started

Core Concepts

Advanced SEO Management

Database-Backed SEO

Cookbooks and Examples

Reference

Typical Usage Patterns

SeoKit works well in three common setups:

  1. Controller-driven pages where you set tags manually per request.
  2. Eloquent models with a related SEO record stored in the database.
  3. Eloquent models that derive SEO data from existing attributes.

Important Details

  • @seoKit(true) renders minified output.
  • If the current route uses Inertia middleware, SeoKit adds the inertia attribute to the rendered <title> tag.
  • If auto_title_from_url is enabled, SeoKit can infer a title from the last URL segment when one is not set manually.

Clone this wiki locally