Why showing error undefined when using alias defined values in laravel application through VS code php intelephense extension?

  alias, intelephense, laravel, php, visual-studio-code

In config/app.php

'aliases' => [
    'Route' => IlluminateSupportFacadesRoute::class,
],

when I am using Route in routes/web.php like

Route::get('/', '[email protected]');

I installed php intelephense extension in my vs code. So that it is showing error like

enter image description here

Does anyone have any idea how to fix this issue? (Functionality is working fine but it is showing like the error is the problem)

Source: Ask PHP

LEAVE A COMMENT