Game-Jaming/Backend/Models/GameData.php

23 lines
413 B
PHP

<?php
namespace Backend\Models;
use Illuminate\Database\Eloquent\Model as Eloquent;
class GameData extends Eloquent
{
protected $fillable = [
'game_name', 'game_link', 'is_web_Based', 'description', "img"
];
public function registration()
{
return $this->hasOne(Registration::class);
}
public function votes()
{
return $this->hasMany(Vote::class);
}
}