Complete Meta Tag Control
Effortlessly control titles, prefixes, suffixes, automatic URL inference, descriptions, keywords, robots directives, and canonical URLs.
A unified, elegant toolkit for Meta Tags, Open Graph, Twitter Cards, Schema JSON-LD, and Database-backed SEO.
Managing SEO in modern Laravel applications often means stitching together multiple single-purpose packages, maintaining repetitive Blade templates, or scattering raw <meta> tags across controllers, models, and views.
SeoKit solves this with a single, expressive API:
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'));
}<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{-- Generates Meta Tags, OpenGraph, Twitter Cards, and JSON-LD --}}
@seoKit
</head>
<body>
@yield('content')
</body>
</html>use Illuminate\Database\Eloquent\Model;
use Larament\SeoKit\Concerns\HasSeo;
class Post extends Model
{
use HasSeo;
}
// Access or attach SEO data directly
$post->seo()->updateOrCreate([], [
'title' => 'Custom Search Title',
'description' => 'Fine-tuned search snippet',
'og_image' => 'marketing/og-banner.jpg',
]);