title: Class App\Http\Controllers\StudentController does not exist in Laravel 5
body: <p>I am building a module called Student in Laravel.</p>
  
  <p>I use the routes.php file inside the Student folder to write routes realted to student module..</p>
  
  <p>When I use just <code>Route::get('/list', function () { return view('welcome');});</code> program working <strong>fine without error</strong>. </p>
  
  <p>But when I am using <code>Route::get('/list', 'StudentController@list');</code> there is a error.</p>
  
  <p>Error is,</p>
  
  <blockquote>
    <p>Class App\Http\Controllers\StudentController does not exist</p>
  </blockquote>
  
  <p><strong>Folder Structure</strong></p>
  
  <p><a href="https://i.stack.imgur.com/mphBV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mphBV.png" alt="enter image description here"></a></p>
  
  <p><strong>Student Controller</strong></p>
  
  <pre><code>namespace App\Student\Controllers;
  
  use Illuminate\Http\Request;
  use App\Http\Controllers\Controller;
  
  class StudentController extends Controller
  {
      public function list(){
          echo "Hello"
      }
  }
  </code></pre>
  
  <p><strong>Student Service Provider</strong></p>
  
  <pre><code>namespace App\Student;
  
  use App\Providers\RouteServiceProvider as ServiceProvider;
  use Illuminate\Support\Facades\Route;
  
  class StudentServiceProvider extends ServiceProvider
  {
      /**
       * Bootstrap the application services.
       *
       * @return void
       */
      public function boot()
      {
          parent::boot();
      }
  
      /**
       * Register the application services.
       *
       * @return void
       */
      public function register()
      {
          //
      }
  
      /**
       * Define the routes for the application.
       *
       * @internal param Router $router
       */
  
      public function map()
      {
          Route::group([
              'namespace' =&gt; $this-&gt;namespace,
              'prefix' =&gt; 'students',
          ], function ($router) {
              require __DIR__ . '/routes.php';
          });
      }
  }
  </code></pre>