snooze icon indicating copy to clipboard operation
snooze copied to clipboard

Next Schedule

Open BenQoder opened this issue 1 year ago • 0 comments

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.

BenQoder avatar Jun 12 '24 23:06 BenQoder