Apr 30, 2018
2
Level 4
How to add dynamic label data to the adminlte side bar navigation without building menu?
Hi there, i want to count a dynamic data which get from database and display as label beside the navigation link. I am using this package jeroennoten/Laravel-AdminLTE.
$usersCount = User::count();
$event->menu->add('MAIN NAVIGATION');
$event->menu->add([
'text' => 'Users',
'url' => 'admin/users',
'icon' => 'users',
'label' => $usersCount,
'label_color' => 'success'
]);
I can do something like this using building menu, but most of my sidebar inside config/adminlte.php. Instead of using building menu to build my sidebar menu, is there any solution or trick to make it work without using building menu? Thanks.
Please or to participate in this conversation.