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

Next Schedule #131

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

BenQoder
Copy link

@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