Support the ongoing development of Laravel.io →
Configuration IOC
Last updated 2 weeks ago.
0

Sorry: "Forum\": "app/src/" should be ---> "MyApp\": "app/src/"

Last updated 2 weeks ago.
0

Composer update is for updating packages. You need to update the autoloader so it can recognize the new classes(namespaces).

composer dump-autoload -o

The -o flag is for optimization. It converts PSR autoloading to classmap for faster autoloading.. They say it's been proven to boost up speed up to 20%.

Last updated 2 weeks ago.
0

Whoops I meant to write dump-autoload not update in the post! Thanks for the reply but that didn't seem to solve the issue. Same issue using psr-0 also..

Last updated 2 weeks ago.
0

Solved: my src/ directory was outside the main app directory!!

Last updated 2 weeks ago.
0

Sign in to participate in this thread!

Full Stack Europe

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.