Nothing to publish for tag [] in Laravel

If you are trying to publish a new package in a Laravel project and you receive the output “Nothing to publish for tag [].”, this is happening because you have cached your config files.

vagrant@homestead:~/Code$ php artisan vendor:publish
Nothing to publish for tag [].

You have to clear your config

vagrant@homestead:~/Code$ php artisan config:clear
Configuration cache cleared!

and rerun the publish command.

vagrant@homestead:~/Code$ php artisan vendor:publish
Copied File [/vendor/maatwebsite/excel/src/config/excel.php] To [/config/excel.php]
Publishing complete for tag []!

Deixa unha resposta

O teu enderezo electrónico non se publicará Os campos obrigatorios están marcados con *

Este sitio emprega Akismet para reducir o spam. Aprende como se procesan os datos dos teus comentarios.