<?php

namespace App\Models;

use App\Libs\Database\Eloquent\ContentTypeModel;
use App\Models\GenericBackoffice\Traits\LanguageSupportTrait;

class FieldOption extends ContentTypeModel
{
    use LanguageSupportTrait;

    protected $hidden = ['languages', "websites"];
    protected $with = ['languages', "websites"];

    protected $fillable = [
        'form_field_id',
        'value',
        'conditional_field_parent_id',
    ];

    public function field()
    {
        return $this->belongsTo(FormField::class);
    }
}
