Sorry: "Forum\": "app/src/" should be ---> "MyApp\": "app/src/"
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%.
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..
Solved: my src/ directory was outside the main app directory!!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community