Support the ongoing development of Laravel.io →
Configuration Architecture
Last updated 4 months ago.
0

If you are using L5, I assumed that you already looked at this:

http://stackoverflow.com/questions/28378460/laravel-5-package-...

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 ;)

Last updated 7 years ago.
0

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

0

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.

0

Very nice.

As soon as I have time after this deadline, I'm going to check that out.

Thanks!

0

I think you already knew this... or may be out of your point... Just for reference. https://getcomposer.org/doc/05-repositories.md#path

0

Sign in to participate in this thread!

LaraJobs

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.