Adminix Documentation Help

Menu

Menu, located on left side of screen in your admin panel, configured in a file confing/adminix.php, in menu array

// confing/adminix.php return [ ... 'menu' => [ 'title' => 'MyAdmin', 'links' => [ ... ] ] ]

Method

Description

title

Text title in the top-left corner on of your admin panel

links

List of links in left-side menu. Link configuration described below

Example:

// confing/adminix.php use AlexKudrya\Adminix\Modules\Link\MenuLinkModule; use App\Adminix\Pages\IndexPage; use App\Adminix\Pages\UsersPage; ... 'links' => [ MenuLinkModule::title('Dashboard') ->uri(IndexPage::URI) ->icon('bi bi-speedometer2'), MenuLinkModule::title('Users') ->uri(UsersPage::URI) ->icon('bi bi-people-fill'), ... ] ...

Link configuration:

Method

Description

uri

Defines the URL address of the Link.

Structure - / {Prefix (from config)} /

Example if page uri set to "users"-https://mydomain.com/adminix/users

Exception - "/", it is mean Adminix home page - https://mydomain.com/adminix

Best practice - Put URI into Page as a constant, as in this example

title

Text title of the Link

icon

(optional) Icon class name from Bootsrap icons

Example: to generate in the Link an icon <i class="bi bi-people-fill"></i> you need paste here bi bi-people-fill class name

Use MenuLinkGroup when several sidebar links belong together. Groups still contain normal Adminix menu links, so the target pages remain declared server-side:

use AlexKudrya\Adminix\Modules\Link\MenuLinkGroup; use AlexKudrya\Adminix\Modules\Link\MenuLinkModule; 'menu' => [ 'title' => 'MyAdmin', 'links' => [ MenuLinkGroup::links( MenuLinkModule::title('Users') ->uri(UsersPage::URI) ->icon('bi bi-people-fill'), MenuLinkModule::title('Products') ->uri(ProductsPage::URI) ->icon('bi bi-cart4') ) ->title('Catalog') ->icon('bi bi-layers'), ], ],

Result: on the full desktop sidebar the group can be expanded inline. On the compact icon-only sidebar Adminix does not expand the group inside the narrow column. Hovering or focusing the group opens a flyout to the right with the group title and full link labels, while simple links show their label in a small flyout. On mobile drawer screens the sidebar remains full width and uses the normal inline group behavior. Each group has one keyboard-operable disclosure control: Enter or Space toggles it, aria-expanded stays synchronized with the flyout, and nested active links keep their ancestor groups open.

Rendered example:

// confing/adminix.php use AlexKudrya\Adminix\Modules\Link\MenuLinkModule; use App\Adminix\Pages\IndexPage; use App\Adminix\Pages\UsersPage; use App\Adminix\Pages\ProductsPage; ... 'menu' => [ 'title' => 'MyAdmin', 'links' => [ MenuLinkModule::title('Dashboard') ->uri(IndexPage::URI) ->icon('bi bi-speedometer2'), MenuLinkModule::title('Users') ->uri(UsersPage::URI) ->icon('bi bi-people-fill'), MenuLinkModule::title('Products') ->uri(ProductsPage::URI) ->icon('bi bi-cart4') ] ] ...

Rendered example:

Adminix sidebar menu
Last modified: 23 July 2026