<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Customer extends Model
{
    protected $table = 'customers';
    protected $fillable = [
        'name','address','phone','fax','email','responsable_name','responsable_position',	
        'responsable_phone','operating_licence_no','commertial_registration_no','tax_card_no',	
        'industrial_registration_no','activity','responsable_email',	
        'created_at','updated_at','industrial_city_id','env_approve_nom'
     ];

     public function city()
     {
         return $this->belongsTo('App\City', 'industrial_city_id');
     }
}