If you are using L5, I assumed that you already looked at this:
http://stackoverflow.com/questions/28378460/laravel-5-package-development/28383338#28383338
I think you can skip the "Adding it to Laravel composer.json" and do this instead:
/*
|--------------------------------------------------------------------------
| Register The Workbench Loaders
|--------------------------------------------------------------------------
|
| The Laravel workbench provides a convenient place to develop packages
| when working locally. However we will need to load in the Composer
| auto-load files for the packages so that these can be used here.
|
*/
if (is_dir($workbench = __DIR__.'/../workbench'))
{
Illuminate\Workbench\Starter::start($workbench);
}
That would be on the boostrap/autoload.php. In your case, 'workbench' there would be 'packages' or 'modules' etc.
Please note that I haven't done this yet on L5, Im just digging up the codes straight from git ;)
I hadn't seen that, thanks @beanmoss!
That's really helpful :)
I think the Laravel docs could really do with another section, something that puts all the good "removed" stuff in one place, as these are all fairly common tasks developers would like to undertake.
So what if it's not "core" - it's useful - put em in the docs at least!
:D
Alternatively, you can have a look at Studio to create your packages. I use it in combination with this composer plugin to share the development version on all the projects I need it on.
Very nice.
As soon as I have time after this deadline, I'm going to check that out.
Thanks!
I think you already knew this... or may be out of your point... Just for reference. https://getcomposer.org/doc/05-repositories.md#path
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community