Game-Jaming/Backend/Models/Group.php

23 lines
540 B
PHP

<?php
namespace Backend\Models;
use Illuminate\Database\Eloquent\Model as Eloquent;
class Group extends Eloquent
{
protected $fillable = [
'groupName', 'groupAmount', 'votes'
];
public function gameJam(){
return $this->belongsTo(GameJam::class);
}
public function keyWord(){
return $this->hasMany(KeyWord::class);
}
public function gameData(){
return $this->belongsTo(GameData::class);
}
public function password(){
return $this->hasOne(Password::class);
}
}