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

msd-it's avatar

Composer Error | php artisan vendor:publish --tag=laravel-assets --ansi

Hello,

Is there any idea what could be wrong with this composer error at the end of the process?

λ composer update
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: facade/ignition
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/fortify
Discovered Package: laravel/sail
Discovered Package: laravel/sanctum
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
76 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi
No publishable resources for tag [laravel-assets].
Publishing complete.

Thanks for any tip in the advance...

0 likes
10 replies
anilkumarthakur60's avatar
php artisan help vendor:publish

Usage:
 vendor:publish [--force] [--provider[="..."]] [--tag[="..."]]

Options:
 --force               Overwrite any existing files.
 --provider            The service provider that has assets you want to publish.
 --tag                 The tag that has assets you want to publish.
 --help (-h)           Display this help message
 --quiet (-q)          Do not output any message
 --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
 --version (-V)        Display this application version
 --ansi                Force ANSI output
 --no-ansi             Disable ANSI output
 --no-interaction (-n) Do not ask any interactive question
 --env   
msd-it's avatar

Hello,

I think that you didn't saw an error at the end of the log:

λ php artisan vendor:publish --force --tag=laravel-assets --ansi
No publishable resources for tag [laravel-assets].
Publishing complete.

As I said, I try almost everything but I get the same error, my question was what is laravel-assets and why did I get this error on the last 3 minor versions of Laravel (this is a fresh installation of the project).

Thanks for the technical answer...

1 like
kokoshneta's avatar

@msdcorporation What error are you talking about? There is no error in your log quotes.

Laravel automatically publishes any assets you may have when you do a Composer update. If you have no Laravel assets to publish, it tells you so: “No publishable resources for tag [laravel-assets]”. Clearly you don’t have any assets that need publishing when your Composer is updated (I don’t either in my project). That’s not an error.

psycho973's avatar

has the problem been solved? how to handle it? I've tried everything but it still doesn't work :'(

Sinnbeck's avatar

@psycho973 please make your own thread so we don't spam the original author. Also what is the error here? It gives 0 errors

Please or to participate in this conversation.