<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Supplier extends Model
{
    protected $fillable =[

        "name", "image", "company_name", "vat_number",
        "email", "phone_number", "address", "city",
        "state", "postal_code", "country", "note", "is_active"
        
    ];

    public function product()
    {
    	return $this->hasMany('App\Product');
    	
    }

    public function purchases()
    {
        return $this->hasMany('App\Purchase');
    }

    public function returns()
    {
        return $this->hasMany('App\ReturnPurchase');
    }
}
