File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ $action->setNonRecurring()->setActOn($carbon)->save();
171171#### Step - 1 :
172172<details >
173173<summary >Some event happend and a task is created to execute on future day & time</summary >
174+
174175``` php
175176ModelAction::actWith('MAIL')
176177->forModel($application)
@@ -187,6 +188,7 @@ ModelAction::actWith('MAIL')
187188#### Step - 2 :
188189<details >
189190<summary >admin decides to alter the task</summary >
191+
190192``` php
191193public function modifyScheduledTask() {
192194 $this->validate();
@@ -213,6 +215,7 @@ public function cancelSchedule() {
213215#### Step - 3 :
214216<details >
215217<summary >receiver class gets task payload & passes the task to classes based on task action (for this example sending email)</summary >
218+
216219``` php
217220<?php
218221
@@ -240,6 +243,7 @@ class ScheduledActionReceiver
240243#### Step - 4 :
241244<details >
242245<summary >email sending task payload gets received via previous receiver class and mail is sent</summary >
246+
243247``` php
244248class MailTaskHandler
245249{
You can’t perform that action at this time.
0 commit comments