L5-Swagger icon indicating copy to clipboard operation
L5-Swagger copied to clipboard

Publish Assets is not working

Open rindhaf opened this issue 2 years ago • 1 comments

  • L5-Swagger Version: ^7.3
  • PHP Version (php -v): ^8.4
  • OS: Windows 10

Description:

When I want to publish assets or views of swagger to change the logo, I got stuck because the command didn't work. I follow the instructions of this link but I got a different response.

The response is like this: \Documents\..\..> docker exec backend php artisan optimize Configuration cached successfully! Route cache cleared! Files cached successfully!

Then, I tried to run the command: docker exec backend php artisan l5-swagger:publish-views, I got the response: Command "l5-swagger:publish-views" is not defined.

Do you want to run "l5-swagger:generate" instead? (yes/no) [no]:

Also, I tried a command: docker exec backend php artisan l5-swagger:publish-assets and the response is the same as the previous one.

not working

I can't choose the option and the response automatically end.

So, do you have any solutions for my stuck? What should I do?

Update: I can't find the assets/views of swagger in my project.

rindhaf avatar Feb 20 '23 05:02 rindhaf

$ php artisan vendor:publish --provider "L5Swagger\L5SwaggerServiceProvider" $ php artisan l5-swagger:generate

designgears avatar Mar 22 '23 17:03 designgears