<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Client extends Model
{
    public $timestamps = true;
    protected $table = 'clients';
    protected $fillable = [
        'client_kind','client_state','client_class','trade_kind','name','address','gov','mobile','email','ct','bd','credit_limit','start_leeh','start_aleeh','branch_id'
    ];
    
    public function branch()
    {
        return $this->belongsTo('App\Branch', 'branch_id');
    }
    
}

