Ao rodar a URL http://localhost:8000/series Apresenta a seguinte mensagem: Illuminate\Contracts\Container\BindingResolutionException Target class [SeriesController] does not exist. http://localhost:8000/series
arquivo SeriesController.php
<?php
namespace App\Http\Controllers;
class SeriesController extends Controller
{
public function listarSeries(){
$series = [
"HIMYM", "Dexter", "Friends", "BOB", "Gumball", "Lost"
];
$html = "<ul>";
foreach ($series as $serie) {
$html .= "<li>{$serie}</li>";
}
$html .= "</ul>";
return $html;
}
}
Arquivo web.php
<?php
use Illuminate\Support\Facades\Route;
Route::get('/series', 'SeriesController@listarSeries');
Estou usando o PHP 8.0.3 e o laravel 8.40.0
Como resolvo esse problema?