Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

s24WebDev's avatar

Package namespace not available

Hey guys, i developed a own L5 package. I developed it on a fresh L5 installation and it works perfectly. I added the package to my github and want to install it on another project via composer. The cloning of the repository is succesfull and the files are at the correct place under vendor/myname/project.

I added the PackageServiceProvider:class to my config/app.php. But L5 cant find the namespace. only if i define the package namespace in root composer.json my package works.

Does anyone has kind of an idea?

Best regards

0 likes
2 replies
zachleigh's avatar
Level 47

Did you install it with composer?

1 like
s24WebDev's avatar

Damn thats so embarrassing. Thanks. I was so nervous i just updated.... facepalm

Please or to participate in this conversation.