Вызов неопределенного метода Route :: name ()

im пытается установить имя для моего маршрута

Route::get('test/show/{id}' , 'TestController@show'); 

ознакомление с документацией

Вместо указания имени маршрута в определении массива маршрутов вы можете связать метод имени в конце определения маршрута:

 Route::get('user/profile','UserController@showProfile')->name('profile'); 

поэтому я написал

 Route::get('test/show/{id}' , 'TestController@show')->name('testShow'); 

но я получаю

 FatalErrorException in routes.php line 28: Call to undefined method Illuminate\Routing\Route::name() in routes.php line 28 at FatalErrorException->__construct() in compiled.php line 1743 at HandleExceptions->fatalExceptionFromError() in compiled.php line 1738 at HandleExceptions->handleShutdown() in compiled.php line 0 in compiled.php line 17158 at RouteServiceProvider->App\Providers\{closure}() in compiled.php line 6819 at call_user_func() in compiled.php line 6819 at Router->group() in compiled.php line 17159 at RouteServiceProvider->map() in compiled.php line 925 at call_user_func_array() in compiled.php line 925 at Container->call() in compiled.php line 4858 at RouteServiceProvider->loadRoutes() in compiled.php line 4840 at RouteServiceProvider->boot() in compiled.php line 17153 at RouteServiceProvider->boot() in compiled.php line 925 at call_user_func_array() in compiled.php line 925 at Container->call() in compiled.php line 1518 at Application->bootProvider() in compiled.php line 1510 at Application->Illuminate\Foundation\{closure}() in compiled.php line 1511 at array_walk() in compiled.php line 1511 at Application->boot() in compiled.php line 1785 at BootProviders->bootstrap() in compiled.php line 1311 at Application->bootstrapWith() in compiled.php line 1928 at Kernel->bootstrap() in compiled.php line 1890 at Kernel->sendRequestThroughRouter() in compiled.php line 1880 at Kernel->handle() in index.php line 53 in index.php line 21 at {main}() in index.php line 0