Skip to content

Next Schedule#131

Open
BenQoder wants to merge 3 commits into
thomasjohnkane:masterfrom
BenQoder:next-schedule
Open

Next Schedule#131
BenQoder wants to merge 3 commits into
thomasjohnkane:masterfrom
BenQoder:next-schedule

Conversation

@BenQoder
Copy link
Copy Markdown

@BenQoder BenQoder commented Jun 12, 2024

Setting Next Schedule

If you want to send a reoccuring notification, you can add the nextSchedule() method to any notification. This method will be used to tell snooze if and when to send another notifiaction.

For example, you might want to send a reminder every 7 days

public function nextSchedule($notifiable) {
    return now()->addDays();
}

If this method is present on your notification, The time it returns will be used to schedule a notification again for that particular notification.

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.

1 participant