Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish Assets is not working #528

Open
rindhaf opened this issue Feb 20, 2023 · 1 comment
Open

Publish Assets is not working #528

rindhaf opened this issue Feb 20, 2023 · 1 comment

Comments

@rindhaf
Copy link

rindhaf commented Feb 20, 2023

  • 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.

@designgears
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants