Skip to content

Installation

iRaziul edited this page Mar 22, 2026 · 3 revisions

Installation

Install SeoKit with Composer:

composer require larament/seokit

SeoKit uses Laravel package discovery, so no manual service provider registration is needed.

Quick Setup

SeoKit ships with an install command that publishes the config and migration:

php artisan seokit:install

Add the directive to your main layout:

<head>
    @seoKit
</head>

Set a title in any controller:

use Larament\SeoKit\Facades\SeoKit;

SeoKit::title('Welcome');

That is enough to get working SEO output.

Manual Setup

If you want explicit control over published files:

php artisan vendor:publish --tag="seokit-config"
php artisan vendor:publish --tag="seokit-migrations"
php artisan migrate

Quick Verification

Create a test route:

use Illuminate\Support\Facades\Route;
use Larament\SeoKit\Facades\SeoKit;

Route::get('/docs', function () {
    SeoKit::title('Docs');

    return view('docs');
});

If the page renders a <title> tag, SeoKit is working.

When You Can Skip Migrations

You can skip the migration if you only want:

  • The facade API
  • The Blade directive
  • Open Graph, Twitter, and JSON-LD helpers

You only need the migration for the HasSeo trait.

Clone this wiki locally