15 lines
350 B
PHP
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');
|
|
}
|
|
}
|