Laravel-ide-helper does not work in api.php but works fine in web.php

     

After Installation of laravel-ide-helper I found that I can not navigate to controller methods by ctrl+click on the name of controller only in api.php file. while that works fine in web.php routes file.


Of course I'm using dingo laravel package and all defined routes are like this :


$api = app('DingoApiRoutingRouter');
$api->version('v1' ['prefix' => 'v1' 'namespace' => 'AppHttpControllers']