Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sbingham's avatar

`Unable to locate publishable resources.` when installing `darkaonline/l5-swagger:6.*`

I'm stuck. Anyone know how I can resolve this issue?

$ composer require "darkaonline/l5-swagger:6.*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 5 installs, 0 updates, 0 removals
  - Installing symfony/yaml (v4.4.10): Loading from cache
  - Installing swagger-api/swagger-ui (v3.26.2): Loading from cache
  - Installing doctrine/annotations (1.10.3): Loading from cache
  - Installing zircote/swagger-php (3.0.4): Loading from cache
  - Installing darkaonline/l5-swagger (6.0.4): Loading from cache
darkaonline/l5-swagger suggests installing zircote/swagger-php:~2.0 (!!! Require Swagger-PHP ~2.0 for @SWG annotations support !!!)
Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.
Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead.
Package moontoast/math is abandoned, you should avoid using it. Use brick/math instead.
Writing lock file
Generating optimized autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
$ php artisan vendor:publish --provider "l5Swagger\l5SwaggerServiceProvider"
Unable to locate publishable resources.
Publishing complete.
0 likes
2 replies
sbingham's avatar
sbingham
OP
Best Answer
Level 1

Problem solved. php artisan vendor:publish --provider "l5Swagger\l5SwaggerServiceProvider" wasn't required. It seems to work fine without it.

focusplanet's avatar

yeah, first enter this command

php artisan vendor:publish --provider

then enter the number where the dependency is .

very simple

➜ # php artisan vendor:publish --provider

Which provider or tag's files would you like to publish?:

[0 ] Publish files from all providers and tags listed below

[1 ] Provider: Adisaf\PerfectMoney\ServiceProvider

[2 ] Provider: Facade\Ignition\IgnitionServiceProvider

[12] Tag: config

[13] Tag: cors

[14] Tag: flare-config

then enter the number , thats it.

Please or to participate in this conversation.