<?php

namespace App\Models;

use App\Casts\Postcode;
use App\Trait\BelongsToSolicitor;
use App\Trait\HasAddress;
use Illuminate\Database\Eloquent\Model;

class Address extends Model {
    protected $table = 'addresses';
    protected $fillable = [
        'solicitor_id',
        'display_name',
        'line_1',
        'line_2',
        'line_3',
        'line_4',
        'line_5',
        'line_6',
        'postcode',
        'is_current',
    ];

    protected $casts = [
        'is_current' => 'boolean',
//        'postcode' => Postcode::class,
    ];

    use BelongsToSolicitor, HasAddress;
}
