Admin Menu


You can add menu items to the admin menu by using the example below. This comes in handly when wanting to add a third party package to the admin area.

'admin_menu_items' => [
        [
            // The slot between menu items. 
            // Slots 0 - 8 are viewable by editors.
            // Slots 9 & 10 are for admins only.
            'slot' => 4,
            // The parent url
            'url' => '/admin/locations',
            'parent_title' => 'Locations',
            'named_route' => 'neutrino.locations',
            // Icons are from FontAwesome using the pro light ( fal ) set. 
            // You won't need to use the fal class.
            'fa-icon' => 'fa-map-marked',
            // List any secondary menu items ( dropdown )
            'children' => [
                [ 'url' => '/admin/locations', 'title' => 'All Locations' ],
                [ 'url' => '/admin/location', 'title' => 'Create Location' ],
            ],
        ],
    ],