mirror of
https://github.com/10h30/MoveMate.git
synced 2026-07-11 18:56:06 +09:00
Add ToggleComplete for TaskController
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ class Task extends Model
|
||||
if (is_null($task->completed)) {
|
||||
$task->completed = false; // Ensure completed is false when creating a new task
|
||||
}
|
||||
$task->user_id = Auth::id(); // Set user_id automatically
|
||||
$task->user_id = Auth::id(); // Set user_id automatically
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user