Support the ongoing development of Laravel.io →
posted 10 years ago
Authentication

I have moved the AuthController from Auth to my new directory Frontend. Here is the route

Route::controller('auth', 'AuthController');

Then I got the erorr : Controllers\AuthController does not exist. If I used : Route::controller('auth', 'Frontend\AuthController');, it is work fine.

So, I want to know how to map all my classes in my custom directories to be loaded form Controllers directory.

Thanks,

Last updated 2 years ago.
0

Hm did you change class name as well? Maybe post you Controller in here.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

semsphy semsphy Joined 30 Jul 2014

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.

© 2025 Laravel.io - All rights reserved.