bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.64k stars 94 forks source link

Socialite with method throws error #1956

Closed warrenboswell closed 6 months ago

warrenboswell commented 3 years ago

Describe the bug As per Laravel docs https://laravel.com/docs/8.x/socialite return Socialite::driver('google') ->with(['hd' => 'example.com']) ->redirect();

The with method shows undefined method. Can this be fixed?

Platform and version v1.7.1

KeithBush commented 3 years ago

You're using a Facade which is a feature of Laravel that lets you use an instance as a static.
This is a dynamic pattern that you have to inform your IDE about.

Install https://github.com/barryvdh/laravel-ide-helper and run php artisan ide-helper:generate.