1. Go to this page and download the library: Download 34ml/filament-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/ */
34ml / filament-seo example snippets
return [
'locales' => [ //Add your locales here
'en',
'ar',
'fr',
],
];
use _34ml\SEO\SEOField;
public static function form(Form $form): Form
{
return $form->schema([
...SEOField::make(),
// Your other fields
]);
}
use _34ml\SEO\SEOField;
public static function form(Form $form): Form
{
return $form->schema([
...SEOField::make(
callbacks: function() {
return $this->collapsible(),
}
),
// Your other fields
]);
}