Skip to content
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

Add payload factory #50

Merged
merged 4 commits into from
Feb 28, 2018
Merged

Add payload factory #50

merged 4 commits into from
Feb 28, 2018

Conversation

timacdonald
Copy link
Contributor

I've added a basic factory to run through the payload logic. This will keep all the logic around what the notification is targeting in one place e.g. emails, player ids, and soon tags + whatever else may be added in the future.

I've added the payload method to the channel class so devs can still easily extend the channel and add future payload functionality that might not yet be implemented - rather than introducing Interfaces etc for the factory. Keeping it simpler.

@LKaemmerling LKaemmerling merged commit fdec78e into laravel-notification-channels:master Feb 28, 2018
@LKaemmerling
Copy link
Collaborator

Thank you! i will merge it and test it some days on a production environment. If all is good we will release it in this week as 1.2.0. Thank you!

@timacdonald
Copy link
Contributor Author

No probs happy to help out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants