Arbeit an Auf/Abstieg

This commit is contained in:
Torsten 2017-10-16 11:19:57 +02:00
parent 8edec26147
commit ed0c445bfa
5 changed files with 107 additions and 18 deletions

View file

@ -44,7 +44,7 @@ class Season extends Model
$setting->save();
}
public static function getLast() {
public static function getPrevious() {
$seasons=Season::where('id','>',0)->orderBy('id','DESC')->get();
if (sizeof($seasons)<2) { return null; }
return $seasons[1];