Answer the question
In order to leave comments, you need to log in
Creating a Laravel package?
I'm trying to create my first package for Laravel. I created a folder packages/<vendor>/<package_name>/src
, registered it in composer.json
, added a service provider to the config. The problem arose when writing tests. In one of the tests I use Illuminate\Http\Response
, which is missing from my package's vendor folder. When installing the framework in the package folder, everything works, but installing Laravel inside Laravel does not seem quite right to me. Is there another option?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question