public static function current() { return WorkWheel::where('week_id', Week::getLatestID())->get(); }
/** * 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'); }