26 lines
512 B
PHP
26 lines
512 B
PHP
<?php
|
|
use Illuminate\Database\Eloquent\Model as Eloquent;
|
|
class Group extends Eloquent
|
|
{
|
|
protected $fillable = [
|
|
'groupName', 'groupAmount', 'votes'
|
|
];
|
|
|
|
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);
|
|
}
|
|
|
|
}
|