Game-Jaming/Backend/Models/GameData.php

23 lines
413 B
PHP
Raw Normal View History

2021-03-03 10:48:34 +00:00
<?php
2021-04-19 07:15:15 +00:00
2021-03-03 11:56:14 +00:00
namespace Backend\Models;
2021-03-03 10:48:34 +00:00
use Illuminate\Database\Eloquent\Model as Eloquent;
2021-04-19 07:15:15 +00:00
2021-03-03 10:48:34 +00:00
class GameData extends Eloquent
{
protected $fillable = [
2021-04-19 07:15:15 +00:00
'game_name', 'game_link', 'is_web_Based', 'description', "img"
2021-03-03 10:48:34 +00:00
];
2021-03-03 11:48:49 +00:00
2021-04-19 07:15:15 +00:00
public function registration()
{
return $this->hasOne(Registration::class);
}
public function votes()
{
return $this->hasMany(Vote::class);
2021-03-03 11:48:49 +00:00
}
2021-03-03 10:48:34 +00:00
}