title: Laravel - Target class [app\Http\Controllers\ProductsController] does not exist
body: <p>I tried several stackoverflow solutions for my problem, but none could fix the problem.</p>
  <p>When i open my Laravel-Project and route to  /products, i get the message:
  &quot;Target class [app\Http\Controllers\ProductsController] does not exist&quot;.</p>
  <p>Here are pictures of my code:</p>
  <p><strong>web.php</strong></p>
  <pre><code>use Illuminate\Support\Facades\Route;
  use app\Http\Controllers\ProductsController;
  
  Route::get('/products', [ProductsController::class, 'index']);
  </code></pre>
  <p><strong>Controller.php</strong></p>
  <pre><code>namespace App\Http\Controllers;
  
  use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
  use Illuminate\Foundation\Bus\DispatchesJobs;
  use Illuminate\Foundation\Validation\ValidatesRequests;
  use Illuminate\Routing\Controller as BaseController;
  
  class Controller extends BaseController
  {
      use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
  }
  </code></pre>
  <p><strong>ProductsController.php</strong></p>
  <pre><code>namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  class ProductsController extends Controller
  {
      public function index() {
          return view('products.index');
      }
  }
  </code></pre>
  <p><strong>index.blade.php</strong></p>
  <pre><code>&lt;html lang=&quot;en&quot;&gt; 
  &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
      &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;ie=edge&quot;&gt;
      &lt;title&gt;Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;Products&lt;/h1&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p><strong>Here is a picture of my filestructure:</strong>
  <a href="https://i.stack.imgur.com/ElZGB.jpg" rel="nofollow noreferrer">laravel structure</a></p>
  <p>Would be so nice if you could help me, cause i really need to go on with my laravel tutorial.</p>