<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class Vendor extends Model
{
    use HasFactory;

    protected $fillable = [
        'company_name', 'address', 'trn', 'phone', 'email', 'website',
        'category', 'remarks',
    ];

    public function contacts()
    {
        return $this->hasMany(VendorContact::class);
    }
}

