bagisto / rest-api

Bagisto REST API provides powerful and flexible endpoints to manage e-commerce operations, including products, orders, customers, and more.
21 stars 23 forks source link

When we add this rest api then shows an error in installer time #202

Closed komal-sh-27 closed 7 months ago

komal-sh-27 commented 7 months ago

When we add this rest api then shows an error in installer time

How To Reproduce:

Step 1: Install bagisto 2.0

Step 2: Now run the below command:

composer require bagisto/rest-api dev-master

Add below options in the .env file (i.e. http://localhost/public your domain):

SANCTUM_STATEFUL_DOMAINS=http://localhost/public

Step 3: To configure the REST API L5-Swagger Documentation run below command:

php artisan bagisto-rest-api:install

Now shows an error like this:

Step: Publishing L5Swagger Provider File...

   ERROR  Command "vendor:publish --tag=bagisto-rest-api-swagger" is not defined. Did you mean one of these?  

  ⇂ vendor:publish  

Screenshot from 2024-01-23 15-04-22

Possible Solution:

Need to fix this error should be install without any error api setup

komal-sh-27 commented 7 months ago

I have checked after new changes, now this issue has been resolved:

Screenshot from 2024-01-25 18-19-47