1. Go to this page and download the library: Download bfg/admin-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/ */
bfg / admin-seo example snippets
use Admin\Extend\AdminSeo\Traits\Addressed;
use Illuminate\Database\Eloquent\Model;
class Page extends Model
{
use Addressed;
...
}
...
public function matrix(Page $page, Card $card, Form $form, Tab $tab) : Page
{
return $page->card(
$card->form(
$form->tabGeneral(
...
),
$form->tabSeo() // SEO tab
),
$card->footer_form(),
);
}
...
class Navigator extends NavigatorExtensionProvider implements ActionWorkExtensionInterface
{
/**
* @return void
*/
public function handle() : void
{
$this->bfg_admin_seo(); // SEO menu item
// OR
$this->group('Seo group', 'seo_group', function (NavGroup $group) {
$group->bfg_admin_seo(); // SEO menu item in group
})->icon_thumbtack();
$this->makeDefaults();
$this->makeExtensions();
}
}