在我今天得到PHP Intelhense的最新更新后,intelefinse一直显示我的路由(以及其他类)的未定义符号的错误,以前没有这样的错误,这让我很困扰.
以下是错误截图:
这是我的代码:
Route::group(['prefix' => 'user', 'namespace' => 'Membership', 'name' => 'user.'], function () {
Route::get('profile', 'ProfileController@show')->name('profile.show');
Route::patch('profile', 'ProfileController@update')->name('profile.update');
Route::patch('change-password', 'ChangePasswordController@change')->name('change-password');
Route::get('role', 'ProfileController@getRole')->name('profile.role');
Route::get('summary', 'SummaryController@show')->name('summary');
Route::get('reserved', 'AuctionController@reservedAuction')->name('reserved');
});
实际上,这段代码中没有错误,但intelephense不断显示错误,那么有没有办法解决这个问题?