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

dtirer@gmail.com's avatar

Laravel 5.1 - php artisan vendor:publish not working

I started a fresh Laravel 5.1 project using a Puphpet VM. The welcome page is loading, and my composer dependencies are pulling properly.

However, a couple of my composer packages have config files and migrations that should be publishing. When i type php artisan vendor:publish into the console, there's no output of any kind, and the nothing gets published.

Any thoughts on where to look? I don't see any errors of any kind

0 likes
3 replies
BrandonSurowiec's avatar

Did you remember to register the service provider for each package in the app configuration?

'providers' => [
...
],
dtirer@gmail.com's avatar
Level 2

Figured it out.

I was adding two packages via composer, one of which needed @dev appended. However, I had set the 'minimum stability' parameter to 'dev' in composer.json instead, and as a result, every package was updated with 'dev' versions. And apparently some of them had a conflict!

So i started fresh, and set the @dev flag for the one package that needed it, and then everything started to work.

Please or to participate in this conversation.