2021-03-05 12:00:07 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Backend\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model as Eloquent;
|
|
|
|
|
|
|
|
class Vote extends Eloquent
|
|
|
|
{
|
|
|
|
protected $fillable = [
|
|
|
|
'points', 'comment'
|
|
|
|
];
|
|
|
|
|
|
|
|
|
2021-04-19 07:15:15 +00:00
|
|
|
public function gameDate()
|
2021-03-05 12:00:07 +00:00
|
|
|
{
|
2021-04-19 07:15:15 +00:00
|
|
|
return $this->belongsTo(GameData::class);
|
2021-03-05 12:00:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|