Arbeit an Auf/Abstieg
This commit is contained in:
parent
8edec26147
commit
ed0c445bfa
5 changed files with 107 additions and 18 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue