MicroFrameWork/app/models/Answer.php

13 lines
284 B
PHP
Raw Normal View History

2024-07-03 14:41:15 +03:00
<?php
namespace Models;
use \Illuminate\Database\Eloquent\Model;
class Answer extends Model {
protected $table = 'Answers';
protected $fillable = ['answer','user_id','question_id'];
public function upvotes()
{
return $this->hasMany('\Models\Upvote');
}
}