Repository does not exists
-
I am creating a custom package for Bagisto. In this process, I have added a constructor function in the controller and called the repository but it is getting below error
The target class [Webkul\Store\Repository\StoreRepository] does not exist.
The repository is already there and everything is updated in the composer and providers.
Kindly guide
-
Hello @ajaykumar1984
While creating a new package this target class you are using is an example we have used Store in while creating a custom theme by default there is no such class present by Store
Kindly go through the documentation for more detail.
Thanks & Regards..!!
-
Thanks for the revert. I have created a package in the Webkul directory.
I have followed Bagisto 2 documentation for the package.
-
@Rishabh-Webkul , I have used the bagisto package for installation. I am re-testing the same. As per instruction, when I use below command
php artisan vendor:publish --force
It should list new package provider but it is not getting displayed
php artisan package:make Webkul/Blog
It is the command for package generation
-
Hello @ajaykumar1984
Might be there should be some issue with your service provider.
Kindly go through this blog for more detail
https://devdocs.bagisto.com/2.x/packages/create-package.html#using-bagisto-package-generator
Or you can check out the video of how to create a module from here.
https://youtu.be/PIjIxtgzOJk?si=dyOzm2-pV5TaTIXi
Thanks & Regards..!!
-
I have checked the video. In the video, they have created a package using the manual process.
Is there any video where a package is created using Bagisto package generator
-
Hello @ajaykumar1984
Greetings of the day..!!
Check out this video for your query.
https://youtu.be/1G8JZG9PQEY?si=jDRRPdaKDFYxWn60
Thanks & Regards..!!
-
@Rishabh-Webkul , Thanks for the update