2021-03-03 10:48:34 +00:00
|
|
|
<?php
|
|
|
|
use Illuminate\Database\Eloquent\Model as Eloquent;
|
2021-03-03 11:48:49 +00:00
|
|
|
class Group extends Eloquent
|
2021-03-03 10:48:34 +00:00
|
|
|
{
|
|
|
|
protected $fillable = [
|
|
|
|
'groupName', 'groupAmount', 'votes'
|
|
|
|
];
|
2021-03-03 11:48:49 +00:00
|
|
|
|
|
|
|
public function password(){
|
|
|
|
return $this->hasOne(Password::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function gameData(){
|
|
|
|
return $this->hasOne(GameData::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function gameJam(){
|
|
|
|
return $this->hasOne(GameJam::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function keyWord(){
|
|
|
|
return $this->hasMany(KeyWord::class);
|
|
|
|
}
|
|
|
|
|
2021-03-03 10:48:34 +00:00
|
|
|
}
|