Loading video...
Video Failed to Load
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... show more
14,973 views • 1 year ago •via X (Twitter)
5 Comments

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

@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.

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

@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?

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.


