Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: VsCode: Go to definition for models #95

Open
carlituxman opened this issue May 10, 2024 · 1 comment
Open

[Feature Request]: VsCode: Go to definition for models #95

carlituxman opened this issue May 10, 2024 · 1 comment
Labels
Feature Request New feature request

Comments

@carlituxman
Copy link

Feature Description

With VSCODE and itellephense not found definitions for models, for example:

//app/http/controllers/Api/ProcessController.php
namespace App\Http\Controllers\Api;
use App\Models\Center\Center;
$center = Center::where("uid", 1)->first();
$mySome = $center->getSome(); //No definition found for 'getSome()'

//app/models/Center/Center.php
namespace App\Models\Center;
class Center extends Model {
    public function getSome()
    {
        return "some";
    }
}

Go to definition "getSome()" on Controller not go

@carlituxman carlituxman added the Feature Request New feature request label May 10, 2024
@AamirSohailKmAs
Copy link
Member

The feature you requested is already in progress, this will be available in the newer extension named Laraphense.

For now you can use PHP Intelephense extension and ide-helper package as dev dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants