Laravel 11 - Target class [TestController] does not exist.
it works in early versions
$this->routes(function () {
Route::middleware('web')
->namespace('App\Http\Controllers')
->group(base_path('routes/web.php'));
but in new version is not work correctly than you for Help
Routing full customization
// bootstrap/app.php
use Illuminate\Support\Facades\Route;
->withRouting(
commands: __DIR__.'/../routes/console.php',
using: function () {
Route::middleware('web')
->namespace('App\Http\Controllers')
->group(base_path('routes/web.php'));
},
)
https://laravel.com/docs/11.x/routing#routing-customization
@puklipo Thank You very much now it is working
Please or to participate in this conversation.