<?php

namespace Modules\QA\Entities;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class QA extends Model
{
    use SoftDeletes;
    protected $fillable = ['question', 'answer'];
    protected $table ='qa';
    public $adminFields=[
        'question'=>[
            'type'=>'string',
            'fa_name'=>'سوال',
            'col'=>12,
            'required'=>true,
            'data'=>[]
        ],
        'answer'=>[
            'type'=>'text',
            'fa_name'=>'جواب',
            'col'=>12,
            'required'=>true,
            'data'=>[]
        ],
    ];
}
