I have a Laravel project and it works good, but I decided to update it and add new features. Since I deployed the project if I try to add new controllers or do and php artisan route:list I always get a 500 error that my class its not found ReflectionException::("Class "AyudaController" does not exist")
This is my web.php
Route::get('ayuda', [AyudaController::class, 'show'])->name('ayuda');
And this is my AyudaController.php
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
class AyudaController extends Controller
{
public function show()
{
return view('ayuda');
}
}
And I have a view ayuda.blade.php