dimanche 30 octobre 2016

use a controller inside a folder in the controllers folder

I'm trying to use a controller inside a folder in the controllers directory like

route

Route::get('/','site\HomeController@index');

but seem's does not work like it gives me this error

Class App\Http\Controllers\site\HomeController does not exist

Note: I have also a HomeController.php in the controllers folder. I'm trying to organize my controllers by putting them unto their specific folders.

Any help, ideas please?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2edcX7W
via IFTTT

Aucun commentaire:

Enregistrer un commentaire