mirror of
https://github.com/10h30/MoveMate.git
synced 2026-06-05 15:07:35 +09:00
Fix bug: Mark Completed should be shown to loggged in user only
This commit is contained in:
@@ -12,7 +12,7 @@ class TaskController extends Controller
|
||||
public function index() {
|
||||
$totalTasks = Task::count(); // Count all tasks
|
||||
$completedTasks = Task::where('completed', true)->count(); // Coun
|
||||
$tasks = Task::latest('updated_at')->Paginate(20);
|
||||
$tasks = Task::latest()->Paginate(20);
|
||||
return view('task.index', compact('tasks','totalTasks','completedTasks'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user