1. Go to this page and download the library: Download ibecsystems/admin-kit-seo library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ibecsystems / admin-kit-seo example snippets
return [
// Set it to false if your project does not need OG tags.
'og_tags' => true
];
use AdminKit\SEO\Traits\HasSEO;
class Post extends AbstractModel
{
use HasSEO;
}
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(),
]);
}
// ...
}