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 []!

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.