van-ons / filament-seo
Add SEO functionality to Filament.
Requires
- php: ^8.2
- filament/filament: ^4.0|^5.0
- prism-php/prism: ^0.99.22|^0.100.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.87
- orchestra/testbench: ^9.0|^10.0|^11.0|^12.0|^13.0
- pestphp/pest: ^3.0|^4.0
- pestphp/pest-plugin-laravel: ^3.0|^4.0
- phpstan/phpstan: ^2.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Filament SEO
Add SEO management to your Filament admin panel — meta tags, SEO analysis, AI-generated metadata, and sitemaps.
Quick start
For Filament version compatibility, see Compatibility.
Installation
composer require van-ons/filament-seo
Model preparation
Add a seo column to your model's table:
Schema::table('pages', function (Blueprint $table) { $table->json('seo')->nullable(); });
Implement the Seoable contract on your model:
use VanOns\FilamentSeo\Concerns\HasSeoFields; use VanOns\FilamentSeo\Contracts\Seoable; class Page extends Model implements Seoable { use HasSeoFields; public function url(): string { return route('page.show', $this); } }
Add fields to your Filament resource
Filament\Forms\Components\Tabs\Tab::make('seo') ->schema(App\Models\Page::getSeoFields()),
Add the view to your layout
<x-filament-seo::head />
Documentation
Please see the documentation for detailed information about installation and usage.
Contributing
Please see Contributing for more information about how you can contribute.
Testing
composer test
Changelog
Please see Changelog for more information about what has changed recently.
Upgrading
Please see Upgrading for more information about how to upgrade.
Security
Please see Security for more information about how we deal with security.
Credits
We would like to thank the following contributors for their contributions to this project:
License
The scripts and documentation in this project are released under the MIT License.
