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?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire