Source: koossaayy.medium.com

How to test a Laravel package locally

Category: Laravel

We think you might be interested in this job:

Lately I’ve been working on submitting a PR to a package, Laravel package to be precise.

I made my adjustments, and then I want to test it, because it has a visual interface.

So reading Composer docs, I found “Repositories”, and you can use it to link a local composer package, How ? First of all, after cl oning or creating your own package, you can link it in your main application by editing composer.json, adding this : Note: the url must be the full path to the package.

Composer now will link the package to the main app, and any change you make in the package will be reflected immediately into your app.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Community Partners