Start a Project

How to remove and replace the items in menu in admin panel ?

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.

Remove the items from the menu

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.

Step 1

Remove the mentioned array from above mention file

 

Before removing the dashboard key from the menu.php file

 

Step 2

Run this command

After removing the dashboard key from the menu.php file

 

 

Replace the items from the menu

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

After completing the changes run this command

 

After replacing the keys

 

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/

 

Exit mobile version