Aggiunto funzionalità di visualizzazione task non scaduti

This commit is contained in:
Amministratore 2023-10-20 08:28:15 +02:00
parent 98b58b5bf7
commit 1ed12d7f31
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class TaskController extends Controller
//
public function listTask()
{
return Task::all();
return Task::where('termine_il','>=', now())->get();
// debug
// return get_class_methods($this);
}

View File

@ -19,7 +19,7 @@ class Task extends Model
//
public static function getTaskAssignedToUser($userid)
{
return self::where('assegnato_a',$userid)->get();
return self::where('assegnato_a',$userid)->where('termine_il','>=', now())->get();
}
//