Source: koossaayy.medium.com

How to test a Laravel package locally

Category: Laravel

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.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners