Début de MyX

This commit is contained in:
2024-08-10 17:10:59 +02:00
parent 74b799b274
commit f28e5700e8
15 changed files with 1140 additions and 5 deletions

22
app/Models/Contest.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Contest extends Model
{
use HasFactory;
protected $guarded = [];
public function category()
{
return $this->belongsTo(Category::class);
}
public function organizer()
{
return $this->belongsTo(Organizer::class);
}
}