show unplayed rounds

This commit is contained in:
Torsten 2017-10-02 10:49:15 +02:00
parent 98ebdb6c93
commit 7545760aa2
5 changed files with 47 additions and 29 deletions

View file

@ -116,7 +116,6 @@ class Round extends Model
return $tippSpielLink;
}
// Ab sofort Verzicht auf statische Methoden, soweit möglich.
public function getLockTime() {
@ -153,4 +152,10 @@ class Round extends Model
}
return $roundnames;
}
public static function getLastRoundId($seasonId) {
$round = Round::where('season_id', '=', $seasonId)->orderBy('id','desc')->first(); // get last entry
return $round->id;
}
}