php - Laravel 5.1 nested controller class not found -


the laravel documentation describes how change routes if nest controllers in folders. seems simple, , yet i'm still getting error. here's error:

"class app\http\controllers\input\inputcontroller not exist"

^that path looks 100% correct me. gives?

file structure:
-controllers
--auth
--input
---inputcontroller.php

routes:

route::get('input', 'input\inputcontroller@getinput');   

inputcontroller:

<?php namespace app\http\controllers;  use illuminate\http\response;  class inputcontroller extends controller {     public function getinput()     {         return response()->view('1_input.input_form');     } } 

thanks help!

change controller namespace from

namespace app\http\controllers 

to

namespace app\http\controllers\input 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -