igfs/app/models/Answer.php
2024-07-10 14:39:37 +03:00

14 lines
288 B
PHP

<?php
namespace app\models;
use \Illuminate\Database\Eloquent\Model;
class Answer extends Model {
protected $table = 'answer';
protected $fillable = ['answer','user_id','question_id'];
public function upvotes()
{
return $this->hasMany('\Models\Upvote');
}
}