M
M
Muhammad2015-10-05 09:02:36
Laravel
Muhammad, 2015-10-05 09:02:36

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

1 answer(s)
M
Muhammad, 2015-10-06
@muhammad_97

Answer on StackOverflow: stackoverflow.com/questions/32952781/writing-tests...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question