Chaos-Events und Voranmeldungen

This commit is contained in:
2026-03-28 02:16:58 +01:00
parent ba2dcb98e2
commit a99b8eb9c1
23 changed files with 485 additions and 33 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ChaosEvents extends Model
{
protected $table = 'chaos_events';
public function preApplications() {
return $this->hasMany('App\Models\PreApplications', 'event_id');
}
public static function getActiveEvents(){
return self::where('to_date', '>=', now())->where('from_date', '<=', now())->get();
}
}