-
-
Notifications
You must be signed in to change notification settings - Fork 10
Home
iRaziul edited this page Mar 22, 2026
·
3 revisions
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:
- Install the package.
- Add
@seoKitto your layout. - Set metadata in your controller, service, or model.
Install the package:
composer require larament/seokit
php artisan seokit:installRender 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'));
}- Cookbooks and Examples
- Blog Post Example
- E-commerce Product Example
- Homepage and Organization Schema Example
SeoKit works well in three common setups:
- Controller-driven pages where you set tags manually per request.
- Eloquent models with a related SEO record stored in the database.
- Eloquent models that derive SEO data from existing attributes.
-
@seoKit(true)renders minified output. - If the current route uses Inertia middleware, SeoKit adds the
inertiaattribute to the rendered<title>tag. - If
auto_title_from_urlis enabled, SeoKit can infer a title from the last URL segment when one is not set manually.
⭐ Star SeoKit on GitHub if you find it useful. It helps more Laravel developers discover the package.
If you are looking for help with Laravel, package integration, or custom web solutions, feel free to reach out: raziul.dev