This error shows up when the dependency injector fails to instantiate a dependency class. probably if you scroll down more there should be another exception, which is causing this exception. Or your HomeController is not registered properly, is the namespace correct ?
The namespace ist correct, because that is exactly the Path namespace "app\Http\Controllers". For what reason the Homecontroller ist not registerd properly and how can i fix that?
what phpstorm tells me is when i move with my mouse to the word route. "undefind class. but the pass i typed in is correct.
looks okay, try running composer dump-autoload, or composer dump-autoload with -o, probably composer can't find your controller class,
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community