Game-Jaming/Backend/Models/GameJam.php

25 lines
361 B
PHP
Raw Normal View History

2021-03-03 10:41:09 +00:00
<?php
2021-04-19 07:15:15 +00:00
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;
2021-03-04 08:18:32 +00:00
2021-04-19 07:15:15 +00:00
class GameJam extends Eloquent
{
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
2021-04-19 07:15:15 +00:00
public function registrations()
{
return $this->hasMany(Registration::class);
2021-03-04 09:19:58 +00:00
}
2021-03-03 11:48:49 +00:00
2021-04-19 07:15:15 +00:00
2021-03-03 10:41:09 +00:00
}