Bento wrote a reply+100 XP
8h ago
Are you using https://github.com/barryvdh/laravel-ide-helper? Because lately that seems to be the culprit of Laravel methods not being recognized properly for me.
Like:
// Undefined method 'belongsTo'.intelephense(P1013)
public function role(): BelongsTo
{
return $this->belongsTo(Role::class, 'roles_id');
}
or update() on Models saying it requires 4 params instead of just an array with whatever I need to update.
Or:
Bento liked a comment+100 XP
13h ago
I've been through this exact "extension bloat" cycle. If you're on PHP 8.5 and Laravel 13, you definitely have some redundancy fighting for CPU cycles.
My recommended "Lean" Stack: Intelephense, Laravel, Laravel Pint, PHPStan,
Bento started a new conversation+100 XP
1d ago
Hiya,
Been using VSCode and now Cursor for years and have accumulated some extensions to work with Laravel and PHP. However I have started to become a little puzzled which ones I really need and trying to declutter / optimize my setup.
Currently I run:
- Intelephense (paid)
- Laravel (Official extension)
- Laravel Pint to format on save etc.
- PHPStan by SanderRonde
- PHP Namespace Resolver
- PHP CS Fixer (Shouldn't Pint on it's own be enough?)
- Laravel Extra Intellisense (idk if useful with official Laravel ext also installed)
I also run laravel-ide-helper on each composer install/update. But it seems to cause problems sometimes in Cursor where for example $model->update() gets squiggly lines because it thinks
I have played with PHPantom lately seeing it incorporates a lot of tooling in one and should be faster than Intelephense but it needs some more work before it can replace Intelephense in Cursor imho.
Anything I should drop or add?