<?php

namespace App\Models\Claim;

use Illuminate\Database\Eloquent\Model;

class FurtherInformation extends Model {
    public $fillable = [
        'claim_id',
        'apply_aps',
        'confirm_care_setting',
        'name_in_care',
        'legal_name_change',
        'supporting_docs_provision',

        // Section 7a care-background fields
        'name_before_care',
        'mothers_name',
        'fathers_name',
        'address_prior_line_1',
        'address_prior_line_2',
        'address_prior_line_3',
        'address_prior_postcode',
        'gp_surgery',
        'hospitals',

        // Links to mirrored rows in the client's other features
        'name_before_care_previous_name_id',
        'mother_relation_id',
        'father_relation_id',
        'address_prior_to_care_id',
    ];

    protected $casts = [
        'hospitals' => 'array',
    ];
}
