This commit is contained in:
2021-03-05 13:00:07 +01:00
parent d2182f5020
commit 93b9411c99
7 changed files with 100 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
<?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);
}
}