Closed nsakib176 closed 6 months ago
Here's one soln to your problem https://github.com/bmewburn/vscode-intelephense/issues/2135#issuecomment-1985272564. The helper file is just for the extension, I recommend putting it somewhere outside of the laravel project folders though.
Describe the bug In Laravel model, after creating a custom function, when I call it other than declaring the object of that class, it shows undefined method error.
To Reproduce
Expected behavior it should recognize auth()->user() is a object of the User model and should not show the undefined method error
Screenshots Similar case with another method.
Platform and version OS = windows 10 and Intelephense version = v1.10.2.