Esempio n. 1
0
 public static function current()
 {
     return WorkWheel::where('week_id', Week::getLatestID())->get();
 }
Esempio n. 2
0
 /**
  * The tasks this user has this week.
  *
  * @return \Illuminate\Database\Eloquent\Collection
  * @return boolean
  */
 public function currentTasks()
 {
     return $this->hasMany(WorkWheel::class)->where('week_id', Week::getLatestID())->pluck('task_id');
 }