-
Notifications
You must be signed in to change notification settings - Fork 21
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
update read me #22
Comments
If You want to use database channel (for notification of users in your app for example) you can implement NotifiableInterface in your User model class and use NotifiableTrait as it was described in readme. But also you must implement two methods in your User class: viaChannels() and routeNotificationFor($channel). like this:
After that you can make any class that implements NotificationInterface like
That's all! When you want to send a notification use something like this
When you want to read notification use an example from readme. I believe this information will help someone and save some time) |
Please Change
To
|
A per the current read me, the interface methods exportForMail() and exportForSms() do not exist but what is available is the exportFor($channel) function which expects the channel parameter and the broadcastOn() functions.
This document does not reflect on the current modifications and because of that setting it up is a problem. So please update it coz I really need to use your great extension, just not certain how to. FYI examples on using the database channel would greatly help.
The text was updated successfully, but these errors were encountered: