skyturk's avatar

Class Doesn't Exist

Hello Dear Laracasts Community. My problem in Lumen. I created new Vivense.php file in Api folder in Controllers. But my executer (Browser) said Class ..... does not exist. How can i resolve this problem. By the way my vivense.php folder's have Vivense class

0 likes
3 replies
lanatel's avatar
lanatel
Best Answer
Level 2

Did you add a namespace in your Vivense class? Also you can try composer dump-autoload

1 like
skyturk's avatar

Yes I added namespace in my Vivense Class = namespace App\Http\Controllers;

Also composer dump-autoload didn't work.

nategg's avatar

I have same problem, tried dump-autoload, didn't work. Since I created all my files from artisan make:model Model --all, they all were properly name-spaced as far as I can tell. Can anyone explain what these steps do anyway?

Please or to participate in this conversation.