Support the ongoing development of Laravel.io →
Configuration IOC
Last updated 1 year ago.
0

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

Last updated 1 year 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 1 year 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 1 year ago.
0

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

Last updated 1 year ago.
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.

© 2024 Laravel.io - All rights reserved.