title: Controllers not working on Laravel 8 despite uncommenting in RouteServiceProvider
body: <p>I try to create routes to my <code>index.blade.php</code> page, i've made a controller &quot;ProductController&quot; using cmd <code>php artisan make:controller ProductController</code>, so in http --&gt; Controllers i do have a ProductController.php file and i put this code in it :</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  class ProductContoller extends Controller
  {
      public function index()
      {
          return view('products.index');
      }
  }
  </code></pre>
  <p>and then in my <code>web.php</code> i create a route using this code</p>
  <pre><code>Route::get('/boutique', 'ProductController@index');
  </code></pre>
  <p>However it doesn't work.</p>
  <p>Firstly, when i go to the pretty url i've setup for my project at localhost using Laragon --&gt; <code>Projetname.test</code> i get the normal Laravel Welcome page, but when i try to go to the url i've just setup like : <code>ProjectName.test/boutique</code>, i get</p>
  <blockquote>
  <p>&quot;Target class [App\Http\Controllers\ProductController] does not exist.&quot;</p>
  </blockquote>
  <p>After reading about the changes since the update of Laravel to V8 <a href="https://stackoverflow.com/questions/63807930/target-class-controller-does-not-exist-laravel-8">here</a>, i've seen that the update made some requirements for routes since $namespace prefix are not enabled automatically, but however that can be enabled again by uncommenting this line in <code>RouteServiceProvider</code></p>
  <pre><code>// protected $namespace = 'App\\Http\\Controllers';
  </code></pre>
  <p>I do uncommenting that line and then clear the cache using <code>php artisan route:cache</code>, however it still not working..</p>
  <p>When i first started doing research about routes issues in Laravel i've seen many forum spotted out that apache Allowoverride settings in httpd.config file may cause issue, so i change it settings from <code>None</code> to <code>All</code> and then restart Laragon but nothing works.</p>
  <p>After correcting label on my controller it still do not work, i try both methode (the old and the new one) none of them works for me, cmd keeps returning me :</p>
  <pre><code>λ php artisan route:list
  
     Illuminate\Contracts\Container\BindingResolutionException
  
    Target class [ProductController] does not exist.
  
    at C:\laragon\www\ProjectName\vendor\laravel\framework\src\Illuminate\Container\Container.php:835
      831▕
      832▕         try {
      833▕             $reflector = new ReflectionClass($concrete);
      834▕         } catch (ReflectionException $e) {
    ➜ 835▕             throw new BindingResolutionException(&quot;Target class [$concrete] does not exist.&quot;, 0, $e);
      836▕         }
      837▕
      838▕         // If the type is not instantiable, the developer is attempting to resolve
      839▕         // an abstract type such as an Interface or Abstract Class and there is
  
    1   [internal]:0
        Illuminate\Foundation\Console\RouteListCommand::Illuminate\Foundation\Console\{closure}(Object(Illuminate\Routing\Route))
  
    2   C:\laragon\www\ProjectName\vendor\laravel\framework\src\Illuminate\Container\Container.php:833
  
  
        ReflectionException::(&quot;Class &quot;ProductController&quot; does not exist&quot;)
  </code></pre>