Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

[ReflectionException] Class Api\AuthController does not exist #16

Closed
timothyallan opened this issue May 16, 2016 · 3 comments
Closed

[ReflectionException] Class Api\AuthController does not exist #16

timothyallan opened this issue May 16, 2016 · 3 comments

Comments

@timothyallan
Copy link

I've done the install twice now just to make sure I didn't miss anything. Fresh version of Laravel, with artisan starter and artisan api run, and all the associated changes and updates made.

I can see the properly namespaced Api\AuthController there, and it's included in the RouteServiceProvider via api-routes.php. Tried composer dump/update etc and still no go.

Tried the biling component and get the same issue.. can't find the Billing Controller.

php artisan route:list fails as well with the error.

Any suggestions?

@mlantz
Copy link
Member

mlantz commented May 16, 2016

Where did you add this line: require app_path('Http/api-routes.php');? To the map() or mapWebRoutes() method? I feel like that could cause the issue

@timothyallan
Copy link
Author

yes, putting it outside of the closure in mapWebRoutes at 2am will certainly cause that error.

Thanks Matt :)

@connor11528
Copy link

@mlantz @timothyallan sorry for bringing up an old one but I had the same issue. Solved it by removing require app_path('Http/api-routes.php'); from RouteServiceProvider. Clearly I had it in the wrong place! Is it required to drop that line into the RouteServiceProvider? Where is it supposed to go and what does it do?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants