How to add menu in admin panel in Bagisto

Updated 5 August 2022

Here we are going to discuss how to add a menu in the admin panel in Bagisto. Just with a few lines of codes, we can add the menu it`s super easy

Now, Let’s Get Started,

Step 1

Inside the given path folder of bagisto, create a file of the name menu.php.
Path – packages/ACME/HelloWorld/Config

create an array of key-value pairs contains with four keys key, name, route, sort, icon-class 

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.

Step 2

Then register it to the Service Provider file using the mergeConfigFrom(path of the menu-file, menu.admin ) in PackagenameServiceProvider.php

Step 3

Then Run a command

 

 

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/

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project




    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home