-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: berkayk/onesignal-laravel facade not being recognized #944
Comments
Hello. Sorry for late response. You can add "@see ...\OneSignalClient" phpDoc to the facade class, and it will work. |
Hi, thx for the answer ;) |
Hey, Maybe he can do something, but this is kind of a one-off, honestly, as most packages work except this. There is an open pull request from almost 3 years ago to add the @see and other phpDocs to the facade class here, but they've been ignored: There are a ton of open PRs and issues, and they need to be maintained better. I suggest copying all of these files into your project, honestly. You can either hard copy or create a fork of the project and symlink it as a package. It's not usually regarded as best practice due to missing out on updates and increasing the code you have to maintain. But this is 3 files and you won't be missing out on many updates. |
You're right ;) I'll give it a try. |
I'll also try to implement facade classes fetching from strings like 'onesignal'. |
Bug description
Hello,
I'm currently using the
berkayk/onesignal-laravel
package in my Laravel project. However, I'm facing an issue where the Laravel IDE isn't auto-completing the facade methods for this package.Interestingly, when I use the
barryvdh/laravel-ide-helper
package, the auto-completion works as expected.Could you please provide some guidance on how to resolve this issue with the
berkayk/onesignal-laravel
package so that the Laravel IDE can auto-complete the facade methods?Thank you.
Plugin version
No response
Operating system
None
Steps to reproduce
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: