barryvdh/laravel-ide-helper

I just can't make "find", "where" and etc methods to auto suggest

JoaoHamerski opened this issue · 1 comments

Versions:

  • ide-helper Version: 2.13
  • Laravel Version: 10.10
  • PHP Version: 8.3

Question:

The _ide_helper_models.php generate this:

class User extends \Eloquent {}

My IDE points it to _ide_helper.php file, which defines the Eloquent class and extends the \Illuminate\Database\Eloquent\Model

class Eloquent extends \Illuminate\Database\Eloquent\Model {
    // auto-generated defined methods here
}

But none of the defined methods are suggested on my IDE, the methods from \Illuminate\Database\Eloquent\Model are being auto suggested just fine.

image

I can't see any class extending the \Illuminate\Database\Query\Builder on my _ide_helpers.php and _ide_helpers_models.php, running php artisan ide-helper:eloquent doesn't changing anything too.

Any idea why?

My VSCode Extensions:

  • mohamedbenhida.laravel-intellisense
  • bmewburn.vscode-intelephense-client
  • MehediDracula.php-namespace-resolver

SOLVED

I had to edit ide-helper.php and set this part to true

/*
    |--------------------------------------------------------------------------
    | Include DocBlocks from classes
    |--------------------------------------------------------------------------
    |
    | Include DocBlocks from classes to allow additional code inspection for
    | magic methods and properties.
    |
    */
    'include_class_docblocks' => true,