Environment:
- Laravel-Code-Generator Version: latest
- Laravel Version: 8
Description:
When generating the route code, laravel-code-generator must use the fully qualified class name or Laravel 8 will generate error "Target class [XXXController] does not exist."
Route::group([ 'prefix' => 'xxx', ], function () { Route::get('/', 'XXXController@index') ->name('xxx.xxxx.index'); });
Must be
Route::group([ 'prefix' => 'xxx', ], function () { Route::get('/', 'App\Http\Controllers\XXXController@index') ->name('xxx.xxxx.index'); });