HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/ZelfVerkopen/zelfverkopen.nl/app/KommaApp/Questions/Models/QuestionTranslation.php
<?php
namespace App\KommaApp\Questions\Models;

use App\KommaApp\Kms\Core\AbstractTranslationModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

/**
 * Class QuestionTranslation
 *
 * @package App\KommaApp\Questions\Models
 * @property int question_id
 * @property int language_id
 * @property string name
 * @property string description
 * @property string url
 * @property string button
 * @property-read \App\KommaApp\Languages\Models\Language $language
 * @property-read \App\KommaApp\Questions\Models\Question $translatable
 * @mixin \Eloquent
 */
class QuestionTranslation extends AbstractTranslationModel
{
    protected $table = 'question_translations';

    protected $fillable = ['name', 'description', 'url', 'button', 'language_id', 'question_id'];

    public function translatable():BelongsTo
    {
        return $this->belongsTo(Question::class);
    }
}