bfg/admin-custom-page

Admin controls for custom pages

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:bfg-admin-extension

0.0.1 2024-06-22 20:20 UTC

This package is auto-updated.

Last update: 2024-08-22 20:42:18 UTC


README

Laravel Logo

Total Downloads Latest Stable Version License

Install

composer require bfg/admin-custom-page

Admin install

php artisan admin:extension bfg/admin-custom-page --install

Admin menu

In the case where you need to change the location of the "Pages" menu item in the structure of the administrative panel of your application, there is a specialized method for achieving this goal. This method, called bfg_admin_custom_page, allows you to flexibly integrate the "Pages" menu item into any part of your site's management interface. Using this method, you get the opportunity to customize the layout of menu elements in accordance with the administration needs and navigation logic of your web application. Thus, bfg_admin_custom_page provides you with tools for optimizing the workspace of the administrative panel, thereby improving its usability and efficiency of working with the Pages settings of your site:

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();
    }
}