<?php

namespace App\Models;

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

class Invoice extends Model
{
    use HasFactory;
    protected $fillable=['cust_id','user_id','finalamt','tax','grandtotal','paytype','shipping','currency'];

     public function cust_name(){
         
        return $this->hasOne(Company::class,"id","cust_id");
         
    }
}
