martin-ro / filament-seo-meta-tags
SEO Meta Tags for Filament Admin Panel
Fund package maintenance!
martin-ro
Installs: 1 189
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: ^8.2
- filament/filament: ^3.0
- illuminate/contracts: ^10.0|^11.0
- romanzipp/laravel-seo: ^2.5
- spatie/laravel-package-tools: ^1.13.5
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-12-08 03:03:00 UTC
README
Model and UI for managing SEO meta tags for Filament.
Installation
You can install the package via composer:
composer require martin-ro/filament-seo-meta-tags
You can run the migrations with:
php artisan migrate
Preparing your model
class Page extends Model { use HasSeoMetaTags; // ... }
Components
Title
SeoTitle::make()
Configuration:
SeoTitle::make(name: 'title', minLength: 50, maxLength: 70, rows: 2, strict: false)
Description
SeoDescription::make()
Configuration:
SeoDescription::make(name: 'description', minLength: 150, maxLength: 165, rows: 4, strict: false)
Robots
SeoRobots::make()
Optional Middleware
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, ], ];
Publishing the configuration
php artisan vendor:publish --tag=filament-seo-meta-tags-config
License
The MIT License (MIT). Please see License File for more information.