Closed LeMingon closed 1 month ago
Hey @LeMingon
I saw your code on stackoverflow.
You are using:
<x-theme-tabler::menu-dropdown title="Authentication" icon="la la-group">
<x-backpack::menu-dropdown-item title="Users" icon="la la-user" :link="backpack_url('user')" />
<x-backpack::menu-dropdown-item title="Roles" icon="la la-group" :link="backpack_url('role')" />
<x-backpack::menu-dropdown-item title="Permissions" icon="la la-key" :link="backpack_url('permission')" />
</x-theme-tabler::menu-dropdown>
But you should use(notice the difference: ~x-theme-tabler~):
<x-backpack::menu-dropdown title="Authentication" icon="la la-user" nested="true">
<x-backpack::menu-dropdown-item title="Users" icon="la la-user" :link="backpack_url('user')" />
<x-backpack::menu-dropdown-item title="Roles" icon="la la-group" :link="backpack_url('role')" />
<x-backpack::menu-dropdown-item title="Permissions" icon="la la-key" :link="backpack_url('permission')" />
</x-backpack::menu-dropdown>
resources/views/vendor/backpack/ui/inc/menu_items.blade.php
For more info, check this section of docs.
Closing due to no response!
If you are still facing the issue, feel free to reopen with more details.
Bug report
I have an issue with dropdown, my menu works without dropdown, and when I am adding dropdown classes in menu_items, I have this error: Unable to locate a class or view for component [theme-tabler::menu-dropdown].
What I did
I tried to add all classes correctly, but it is not working
What I expected to happen
I expected that menu authentication would be a dropdown menu(roles, permissions, and users)
What happened
I have error
What I've already tried to fix it
composer dump-autoload
Context to replicate the bug - Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is: