We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
If you want to use a forked package in Laravel, here are the steps you need to follow:
-
Create a fork of the package on GitHub.
-
Create a new branch in the fork which will contain your changes.
-
Make the necessary changes to the package in the new branch.
-
Push the changes to the fork.
-
Update the
composer.json
file in your Laravel project to point to the forked package.{ "require": { "<original-owner>/<package-name>": "dev-<branchname>", }, "repositories": [ { "type": "vcs", "url": "https://github.com/<fork-owner>/<package-name>" } ] }
-
Run
composer update
to install the forked package.
If you didn't have the package installed yet, you can tell composer to install a specific version:
composer require <original-owner>/<package-name>:dev-<branchname>
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.