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/farmfun/reserveren.farmfun.be/app/Komma/Questions/Models/QuestionTranslation.php
<?php

namespace App\Komma\Questions\Models;

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

/**
 * Class QuestionTranslation
 *
 * @property int question_id
 * @property-read \App\Komma\Globalization\Languages\Models\Language $language
 * @property-read \App\Komma\Questions\Models\Question $translatable
 * @mixin \Eloquent
 * @property int $id
 * @property int $language_id
 * @property string $name
 * @property string $slug
 * @property string $description
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Questions\Models\QuestionTranslation whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Questions\Models\QuestionTranslation whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Questions\Models\QuestionTranslation whereLanguageId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Questions\Models\QuestionTranslation whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Questions\Models\QuestionTranslation whereQuestionId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Questions\Models\QuestionTranslation whereSlug($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Questions\Models\QuestionTranslation whereUpdatedAt($value)
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\Komma\Components\ComponentArea\ComponentArea[] $componentAreas
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Questions\Models\QuestionTranslation newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Questions\Models\QuestionTranslation newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Questions\Models\QuestionTranslation query()
 */
final class QuestionTranslation extends AbstractTranslationModel
{
    protected $protected = ['id', 'question_id', 'language_id'];

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