title: Laravel 6.0 php artisan route:list returns “Target class [App\Http\Controllers\SessionsController] does not exist.”
body: <p>I am using Laravel 6.0 and I try to list all my routes with <code>artisan route:list</code>, but it fails and returns:</p>
  <blockquote>
  <p>Illuminate\Contracts\Container\BindingResolutionException  : Target
  class [App\Http\Controllers\SessionsController] does not exist.</p>
  <p>at /home/vagrant/code/vendor/laravel/framework/src/Illuminate/Container/Container.php:806
  802|
  803|         try {
  804|             $reflector = new ReflectionClass($concrete);
  805|         } catch (ReflectionException $e) {
  &gt; 806|             throw new BindingResolutionException(&quot;Target class [$concrete] does not exist.&quot;, 0, $e);
  807|         }
  808|
  809|         // If the type is not instantiable, the developer is attempting to resolve
  810|         // an abstract type such as an Interface or Abstract Class and there is</p>
  <p>Exception trace:</p>
  <p>1   Illuminate\Foundation\Console\RouteListCommand::Illuminate\Foundation\Console{closure}(Object(Illuminate\Routing\Route))
  [internal]:0</p>
  <p>2   ReflectionException::(&quot;Class App\Http\Controllers\SessionsController does not exist&quot;)
  /home/vagrant/code/vendor/laravel/framework/src/Illuminate/Container/Container.php:804</p>
  <p>3   ReflectionClass::__construct(&quot;App\Http\Controllers\SessionsController&quot;)
  /home/vagrant/code/vendor/laravel/framework/src/Illuminate/Container/Container.php:804</p>
  </blockquote>
  <p>Up to now I just have a very simple web.php routes file:</p>
  <pre><code>Route::get('/', function () {
      return view('index');
  });
  
  
  Route::prefix('app')-&gt;group(function () {
      // Registration routes
      Route::get('registration/create', 'RegistrationController@create')-&gt;name('app-registration-form');
  });
  
  
  // Templates
  Route::get('templates/ubold/{any}', 'UboldController@index');
  </code></pre>
  <p>Any idea how I could debug this issue?</p>