Veleous
172
2
Laravel

Package dependencies during development

Posted 1 month ago by Veleous

When creating packages that have dependencies, how do you include them for local testing but not in the published package?

So that I can test locally, I have been adding:

include __DIR__.'/../vendor/autoload.php';

Then when about to push to my repo, I remove that line. This seems a little hacky though, is there a 'correct' method for this?

Please sign in or create an account to participate in this conversation.