How to override Controller in Bagisto

Suppose we want to add our custom functionality to the Bagisto, and if we change the core files of the Bagisto this will create a problem. To solve this problem here comes the concept of overriding the function

We are here overriding Velocity Controller called ShopController in Custom Module

Step 1

Copy and paste the controller into the custom module as shown below in the screenshot

Step 2

Make the changes you want in the controller and save the file

Step 3

Publish the controller from the Custom Service Provider as illustrated below

Step 4

Run the Command php artisan vendor: publish –force 

So, that was much about the article “ How to override controller in Bagisto ? ”. Also for any queries or doubts reach out to us at [email protected]. You can also raise a ticket at our HelpDesk System.

. . .


Add Your Comment

Be the first to comment.

Bagisto is the best affordable Multitenant E-Commerce Module Being in eCommerce, my company wanted to have a Multi-tenant Ecommerce platform. I recommend to try it out.

Alphonse Kagenzi

Alphonse Kagenzi
Talk to Sales


Live Chat
Start a Project

    Message Sent!

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

    Back to Home