Updated 5 August 2022
In this Blog, we are going to learn about “How to remove and replace the items in the menu in the admin panel?
The developers can remove and replace the items from the menu in the admin panel. according to their need.
And it is quite easy to do this. I have mentioned the process in steps. Please follow the instructions given below to achieve this.
First, we need to go to the menu.php file inside the Admin package of the Bagisto. There we will find an array of menus where we can remove the items.
Remove the mentioned array from above mention file
Run this command
1 |
php artisan optimize:clear |
First, we need to go to the menu.php file inside the Admin package of the Bagisto. There we will find an array of menus where we can replace the items. We need to replace four keys.
key – Unique key for menu icon.
name – Name of menu icon.
route – Route name for your menu icon.
sort – Sort the number on which your menu icon should display.
icon-class – Class for menu icon.
Before replace the menu keys
1 2 3 4 5 6 7 8 |
return [ [ 'key' => 'leads', 'name' => 'Leads-menu', 'route' => 'admin.sales.leads.index', 'sort' => 2, 'icon-class' => 'leads-icon', ], |
1 |
php artisan optimize:clear |
That’s all for adding the menu in Bagisto. Stay tuned for more updates on these types of topics. If you have any issues feel free to raise a ticket at https://bagisto.uvdesk.com/en/
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
Be the first to comment.