Model and UI for managing SEO meta tags for Filament.
You can install the package via composer:
composer require martin-ro/filament-seo-meta-tags
You can run the migrations with:
php artisan migrate
class Page extends Model
{
use HasSeoMetaTags;
// ...
}
SeoTitle::make()
Configuration:
SeoTitle::make(name: 'title', minLength: 50, maxLength: 70, rows: 2, strict: false)
SeoDescription::make()
Configuration:
SeoDescription::make(name: 'description', minLength: 150, maxLength: 165, rows: 4, strict: false)
SeoRobots::make()
php artisan filament-seo-meta-tags:publish-middleware
In your app/Http/Kernel.php
file, add the middleware to the web
group:
protected $middlewareGroups = [
'web' => [
// ...
\App\Http\Middleware\AddSeoMetaTagDefaults::class,
],
];
php artisan vendor:publish --tag=filament-seo-meta-tags-config
The MIT License (MIT). Please see License File for more information.