PHP code example of bfg / admin-custom-page
1. Go to this page and download the library: Download bfg/admin-custom-page 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-custom-page example snippets
class Navigator extends NavigatorExtensionProvider implements ActionWorkExtensionInterface
{
/**
* @return void
*/
public function handle() : void
{
$this->bfg_admin_custom_page(); // SEO menu item
// OR
$this->group('Pages group', 'pages_group', function (NavGroup $group) {
$group->bfg_admin_custom_page(); // SEO menu item in group
})->icon_thumbtack();
$this->makeDefaults();
$this->makeExtensions();
}
}
php artisan admin:extension bfg/admin-custom-page --install