ibecsystems / admin-kit-seo
SEO package for AdminKit
Installs: 874
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:admin-kit-package
Requires
- php: ^8.1
- filament/filament: ^3.0-stable
- ibecsystems/admin-kit-core: ^3.1
- spatie/laravel-translatable: ^6.5
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9|^8.1
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0|^9.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
README
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
composer require ibecsystems/admin-kit-seo
You can publish and run the migrations with:
php artisan vendor:publish --tag="admin-kit-seo-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="admin-kit-seo-config"
This is the contents of the published config file:
return [ // Set it to false if your project does not need OG tags. 'og_tags' => true ];
Usage
The Eloquent Model you're editing uses the HasSEO
trait:
use AdminKit\SEO\Traits\HasSEO; class Post extends AbstractModel { use HasSEO; }
And you can use SEOComponent
to Filament Resource or other forms:
use Filament\Resources\Form; use AdminKit\SEO\Forms\Components\SEOComponent; class ArticleResource extends Resource { // ... public static function form(Form $form): Form { return $form->schema([ // Your other fields ... SEOComponent::make(), ]); } // ... }
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.