visual-studio-codehelperlaravel-10intelephense

Laravel 10 helper functions VS code intelephense issues


I recently updated my laravel project from 9.x to 10.x. Ever since the PHP intelephense extension in VS code is not able to find the global helper functions like view(), app(), resolve(), ... . They get marked down as with for example Undefined function 'App\Http\Controllers\Web\view'.intelephense(1010).

However the code still functions as normal. Does anyone know how to fix this?


Solution

  • I found an answer through laracats: I had to disable, reload and enable the intelephense extension.