ahmadbadpey's avatar

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('Dingo\Api\Routing\Router');

$api->version('v1', ['prefix' => 'v1', 'namespace' => 'App\Http\Controllers'], function ($api) {
    $api->post('Profile', ['as' => 'Profile', 'uses' => 'UserController@showProfile']);
    $api->post('getEditProfile', ['uses' => 'loginController@getEditProfile']);
    $api->post('UpdateProfile', ['uses' => 'loginController@UpdateProfile']);
    });

Could this be problematic?

0 likes
3 replies
bashy's avatar

@ahmadbadpey I know why you would want it, I stated that the Laravel plugin won't allow that via additional packages?

Please or to participate in this conversation.