<?php

namespace App\Models;

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

class RequisitionDetailes extends BaseModel
{
    use HasFactory;

    protected $guarded = [];

    public function attribute()
    {
        return $this->hasOne(productAttribute::class, 'id', 'attribute_id')->with('color', 'unit', 'brand', 'product', 'warehouse.warehouse','origin');
    }
}
