Game-Jaming/Backend/Models/Vote.php

19 lines
271 B
PHP

<?php
namespace Backend\Models;
use Illuminate\Database\Eloquent\Model as Eloquent;
class Vote extends Eloquent
{
protected $fillable = [
'points', 'comment'
];
public function group()
{
return $this->belongsTo(Group::class);
}
}