ldc-gen-game-web/app/Models/FaqQuestions.php
2020-10-26 13:47:52 +01:00

15 lines
350 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class FaqQuestions extends Model
{
protected $table = "faq_questions";
protected $fillable = ["question", "answer", "positive_vote", "negative_vote", "theme_id"];
public function theme() {
return $this->belongsTo('App\Models\FaqThemes', 'theme_id');
}
}