LMSouq
php-dev Open

Visual Studio Code PHP Intelephense keeps showing a not existing error

AD
Adrian Edy Pratama
1 month ago
3 views
Problem Description
After the latest update of PHP Intelephense that I get today, Intelephense keeps showing an error for an undefined symbol for my route (and other classes too). There was no error like this before and it's bothering me. This is the error screenshot. [![screenshot][1]][1] This is my code. ```php 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'); }); ``` Is there a way to fix this? [1]: https://i.sstatic.net/DQ8AW.png

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base