check if the task is future or ongoing to send email and notification on assign user
This commit is contained in:
@@ -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