Loading video...

Video Failed to Load

Go Home

The latest IDE Helper release (v3.5) now provides a lot more PHPStorm autocomplete than before, inspired by the VS Code plugin, using Advanced Metadata for PhpStorm, a JetBrains IDE Run php artisan ide-helper:meta to: - Autocomplete arguments for config(), view(), env(), route(), trans() etc - Fix return type for...

14,973 views • 1 year ago •via X (Twitter)

5 Comments

Damilola E. Olowookere's profile picture
Damilola E. Olowookere1 year ago

@phpstorm Honest question: why does the latest IDE Helper still does not provide auto completion for Laravel's `auth()->...` helper?

Barry vd. Heuvel's profile picture
Barry vd. Heuvel1 year ago

@phpstorm If you are using PHPStorm with ide-helper:generate, models and meta, it should autocomplete. auth()->user(), request()->user(), auth()->guard(..)->user() etc should all return the actual user. If not, you might have not setup the default user model in your auth.php config.

eSignatures.com's profile picture
eSignatures.com1 year ago

Discover Add secure, embedded signing to your WordPress site in seconds. Try now!

Christopher Gilroy's profile picture
Christopher Gilroy1 year ago

@phpstorm Barry, as the OG plugin for PhpStorm I would like to ask, are there any major differences between this and the Laravel IDEA plugin, if you know? Would you recommend (or have you used) both at the same time?

Barry vd. Heuvel's profile picture
Barry vd. Heuvel1 year ago

IDE Helper meta-data only provides auto-complete and some return types. The Models commands adds completion/click through for models, and the ide helper file autocomplete for facades. But it cannot click-through to view files/config files based on the argument. Also no Blade support. And meta-data is only as up-to-date as the last time you generate it, while Laravel IDEA, VS Code and Language Servers can do more. So pretty sure Laravel IDEA is more complete, but not free.

Related Videos