Game-Jaming/Backend/Models/GameJam.php

23 lines
422 B
PHP
Raw Normal View History

2021-03-03 10:41:09 +00:00
<?php
2021-03-03 11:56:14 +00:00
namespace Backend\Models;
2021-03-04 08:18:32 +00:00
2021-03-03 10:41:09 +00:00
use Illuminate\Database\Eloquent\Model as Eloquent;
class GameJam extends Eloquent{
2021-03-04 08:18:32 +00:00
2021-03-03 10:41:09 +00:00
protected $fillable =[
2021-03-04 08:18:32 +00:00
'name',
2021-03-08 12:09:50 +00:00
'start_time',
'end_time',
'key_word',
2021-03-04 08:18:32 +00:00
'description'
2021-03-03 10:41:09 +00:00
];
2021-03-03 11:48:49 +00:00
public function group(){
return $this->hasMany(Group::class);
}
2021-03-04 09:19:58 +00:00
public function hasVoted(){
return $this->hasMany(hasVoted::class);
}
2021-03-03 11:48:49 +00:00
2021-03-03 10:41:09 +00:00
}