jackhugh

jackhugh

Member Since 4 years ago

Experience Points
0
follower
Lessons Completed
0
follow
Lessons Completed
8
stars
Best Reply Awards
1
repos

184 contributions in the last year

Pinned
Activity
Sep
15
1 month ago
Sep
11
1 month ago
started
started time in 1 month ago
Sep
10
1 month ago
started
started time in 1 month ago
Sep
9
1 month ago
started
started time in 1 month ago
Aug
27
2 months ago
Activity icon
issue

jackhugh issue barryvdh/laravel-ide-helper

jackhugh
jackhugh

Query builder methods on relationships

Is there any way to get query builder methods to autocomplete on relationships?

Using vscode, intelephense with ide-helper:models -M

eg

// no error but exists method will not autocomplete
$this->hasMany(Foo::class)->exists();

// in this case the builder method autocompletes as getQuery returns a builder instance
$this->hasMany(Foo::class)->getQuery()->exists();
Activity icon
issue

jackhugh issue comment barryvdh/laravel-ide-helper

jackhugh
jackhugh

Query builder methods on relationships

Is there any way to get query builder methods to autocomplete on relationships?

Using vscode, intelephense with ide-helper:models -M

eg

// no error but exists method will not autocomplete
$this->hasMany(Foo::class)->exists();

// in this case the builder method autocompletes as getQuery returns a builder instance
$this->hasMany(Foo::class)->getQuery()->exists();
jackhugh
jackhugh

Premium intelephense seems to have solved the issue.

Activity icon
issue

jackhugh issue barryvdh/laravel-ide-helper

jackhugh
jackhugh

Query builder methods on relationships

Is there any way to get query builder methods to autocomplete on relationships?

Using vscode, intelephense with ide-helper:models -M

eg

// no error but exists method will not autocomplete
$this->hasMany(Foo::class)->exists();

// in this case the builder method autocompletes as getQuery returns a builder instance
$this->hasMany(Foo::class)->getQuery()->exists();
Aug
22
2 months ago
started
started time in 2 months ago
Aug
21
2 months ago
started
started time in 2 months ago