Aggiunto funzionalità di visualizzazione task non scaduti
This commit is contained in:
parent
98b58b5bf7
commit
1ed12d7f31
@ -10,7 +10,7 @@ class TaskController extends Controller
|
|||||||
//
|
//
|
||||||
public function listTask()
|
public function listTask()
|
||||||
{
|
{
|
||||||
return Task::all();
|
return Task::where('termine_il','>=', now())->get();
|
||||||
// debug
|
// debug
|
||||||
// return get_class_methods($this);
|
// return get_class_methods($this);
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ class Task extends Model
|
|||||||
//
|
//
|
||||||
public static function getTaskAssignedToUser($userid)
|
public static function getTaskAssignedToUser($userid)
|
||||||
{
|
{
|
||||||
return self::where('assegnato_a',$userid)->get();
|
return self::where('assegnato_a',$userid)->where('termine_il','>=', now())->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user