check if the task is future or ongoing to send email and notification on assign user

This commit is contained in:
2026-03-19 08:43:53 +01:00
parent 77d3efc555
commit 5d256637ec
+1 -1
View File
@@ -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(