Skip to content

Add payload factory#50

Merged
LKaemmerling merged 4 commits into
laravel-notification-channels:masterfrom
timacdonald:add_factory
Feb 28, 2018
Merged

Add payload factory#50
LKaemmerling merged 4 commits into
laravel-notification-channels:masterfrom
timacdonald:add_factory

Conversation

@timacdonald
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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