show unplayed rounds
This commit is contained in:
parent
98ebdb6c93
commit
7545760aa2
5 changed files with 47 additions and 29 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue