<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ConsultUs extends Model
{
    protected $table = 'consult_us';
    protected $primaryKey = 'id';
    protected $fillable = [
        'branch',
        'address',
        'mobile_no',
        'map_link',
        'active_status',
    ];
    protected $hidden = [
        'created_at',
        'updated_at'
    ];

    public function branchnumber() {
        return $this->hasMany('App\Models\ConsultUsNumber', 'brand_id', 'id')->where('active_status', 1);
    }
}
