Vscode-intelephense: In Laravel App Projects: Routes/web.php = Undefined type 'Route'.intelephense(1009)

Created on 1 Mar 2020  路  1Comment  路  Source: bmewburn/vscode-intelephense

It detecting error,.. but it works for my laravel project, can you fix this?

It shows error/red or curly red underline of the word Route / Route Class at web.php or api.php of laravel route files,..

please fix this,.
thanks

error Showed:
Undefined type 'Route'.intelephense(1009)

image

Most helpful comment

Definitions of global namespaced Laravel facades must be added to the workspace. One way to do this is use https://github.com/barryvdh/laravel-ide-helper . Or you can disable undefined type diagnostics with intelephense.diagnostics.undefinedTypes.

>All comments

Definitions of global namespaced Laravel facades must be added to the workspace. One way to do this is use https://github.com/barryvdh/laravel-ide-helper . Or you can disable undefined type diagnostics with intelephense.diagnostics.undefinedTypes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

usrnm-nk picture usrnm-nk  路  3Comments

umpirsky picture umpirsky  路  4Comments

muuvmuuv picture muuvmuuv  路  4Comments

nn-hh picture nn-hh  路  3Comments

pseudoanime picture pseudoanime  路  3Comments