lacee1986
10/1/2019 - 2:49 PM

Update vendor repository

How to change a vendor repository without loosing updates.

Fork the repository

  • Fork to your Github account
  • Create a new branch, call it anything, for example bugfix
  • Do your changes and push

Change the composer.json

"require": {
        "danielme85/laravel-log-to-db": "dev-bugfix"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/yourgithubaccount/laravel-log-to-db"
        }
    ]

The dev prefix will added automatically, you don't have to name the branch like that.

Run composer update

composer update