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

magnetas's avatar

Require dom-crawler in Laravel 5.2

Hi.

I migrated from laravel 5.1 to 5.2 following the guide in laravel docs. I added symfony/dom-crawler to require-dev in composer.json etc. The thing is I actually use that package in my project so once I deployed it to my production environment using envoyer the package was missing of course.

However even though I moved the package to require section it is not “installed” when I deploy.

Although when I ssh and run "composer update —no-dev" dom-crawler is added.

Any clues how can I make sure that all the needed packages are there after the deployment process finishes?

Thank you

0 likes
1 reply
magnetas's avatar
magnetas
OP
Best Answer
Level 8

It looks like composer.lock file was out of date somehow. All other modified files were commited/pushed/merged successfully. composer.lock was 2 days old. And even now it got updated after I pushed it two more times.

Please or to participate in this conversation.