ibecsystems/admin-kit-seo

SEO package for AdminKit

Installs: 973

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:admin-kit-package

v3.5.0 2024-08-12 08:58 UTC

This package is auto-updated.

Last update: 2024-12-12 09:39:06 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.