-
-
Notifications
You must be signed in to change notification settings - Fork 10
Installation
iRaziul edited this page Mar 22, 2026
·
3 revisions
Install SeoKit with Composer:
composer require larament/seokitSeoKit uses Laravel package discovery, so no manual service provider registration is needed.
SeoKit ships with an install command that publishes the config and migration:
php artisan seokit:installAdd 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.
If you want explicit control over published files:
php artisan vendor:publish --tag="seokit-config"
php artisan vendor:publish --tag="seokit-migrations"
php artisan migrateCreate 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.
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.
⭐ 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