Support the ongoing development of Laravel.io →
Installation Packages

I'm trying to put all my reusable code in packages to get them easily into other projects. I want to make a different package for different responsibilities of the code, to keep it clean. So, lets assume I've done that, now I would like to bundle all these packages in to a parent package for even easier distribution.

I have tried that, but I seem unable to reference the methods within the sub-packages, even though the service provider is loaded in the app (I verified by checking dd($app) in my view.). The error I'm getting is "Method xxxx does not exist" when trying to run a method from one of the sub-packages. If I install each sub-package manually as its own package, then everything works.

Any ideas what may be causing this?

Thanks! ~Mike

Last updated 3 years ago.
0

Hey Mike,

Did you manage to solve your issue?

I am interested in doing something similar and would love to see what you have done!

Thanks, Damian

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2025 Laravel.io - All rights reserved.