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