check if the task is future or ongoing to send email and notification on assign user
This commit is contained in:
1 parent
77d3efc555
commit
5d256637ec
1 file changed
+1
-1
@@ -91,7 +91,7 @@ class TasksController extends Controller
|
|||||||
|
|
||||||
$user = User::find($id);
|
$user = User::find($id);
|
||||||
|
|
||||||
if($user) {
|
if($user && Carbon::now()->lessThanOrEqualTo($task->end)) {
|
||||||
$task->users()->attach($id);
|
$task->users()->attach($id);
|
||||||
|
|
||||||
broadcast(new VolunteerAssignedToTask(
|
broadcast(new VolunteerAssignedToTask(
|
||||||
|
|||||||
Reference in new issue
Block a user