Composer/Laravel:如何添加/更新特定的包
问题描述
How do you add/update a specific package using composer? I'm using the latest Laravel as well not sure if it matters but anything that can help to determine the answer.
I have also tried the following from an old Stackoverflow post I had found, but it didn't work for me. It appended the package to composer.json and then proceeded to update everything anyways. Here is the link: How to update a single library with Composer?
And here is the package I tried to add to my project: https://github.com/barryvdh/laravel-dompdf
Thank you very much for your time and help!
Edit:
Require and update are not working they update everything as well. Is it possible that I'm running the command incorrectly? I'm still green behind the ears when it comes to composer :S
I tried the following and it seemed to work for me.
You'll have to first add barryvdh/laravel-dompdf
to the composer.json
file. Then perform the following:
这篇关于Composer/Laravel:如何添加/更新特定的包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!