Composer/Laravel: How to add/update a specific package

前端 未结 2 585
温柔的废话
温柔的废话 2021-02-01 04:36

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.

2条回答
  •  情歌与酒
    2021-02-01 04:40

    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 update barryvdh/laravel-dompdf --lock
    

提交回复
热议问题