<?php

namespace App\Models;

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

class OrderDetails extends Model
{
    use HasFactory;

    public function item(){
        return $this->belongsTo(Item::class)->withDefault();
    }
    public function order(){
        return $this->belongsTo(Order::class,'order_id','id');
    }
}
