ldc-gen-game-web/app/Models/FaqQuestion.php

40 lines
872 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* FaqQuestion.
*
* @property string $question Question
* @property string $answer Answer
* @property-read \Illuminate\Support\Carbon $created_at Creation Date.
* @property-read \Illuminate\Support\Carbon $updated_at Last update Date.
*
* @property-read \App\Models\FaqTheme $theme Associated theme.
*/
class FaqQuestion extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
2023-08-22 09:18:39 +02:00
'question',
'answer',
'theme_id'
];
2022-08-11 10:26:29 +02:00
/**
* Theme relation
2023-08-22 09:18:39 +02:00
*
2022-08-11 10:26:29 +02:00
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
2021-08-18 17:08:02 +02:00
public function theme()
{
return $this->belongsTo(FaqTheme::class, 'theme_id');
}
}