Check Here
Check Here

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.

I am using Bagisto for my website Kart Of Art and it's awesome experience with them. They have always supported with any bug asap. I recommend everyone to use this for any ecommerce website.

Sourabh Akash

Sourabh Akash
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