-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Create Native\Laravel\Facades\Notification #25
Conversation
namespace Native\Laravel\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add notification methods into docblock!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just Object_
is a problem!
I fix it after this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of consistency here, but you don't really need a facade for this class as it has its own factory: the static new()
method
I fixed all of suggestions and import failed class. |
I wanted to get rid of all these static constructors as they hide the Client dependency. That's why this was also removed in most other classes - so I think a facade is better suited in this case 👍 |
Thank you |
According to doc: https://nativephp.com/docs/1/the-basics/notifications that it needs Facade for notification, but missing now.