belongsTo(Peti::class, 'peti_id')->select( 'id', 'tipe_peti_id', 'customer_id', 'warehouse_id', 'date_pembuatan', 'kondisipeti_id', 'fix_lot', 'updated_by', )->withTrashed(); } public function customer() { return $this->belongsTo(Customer::class, 'customer_id')->select( 'name', 'code_customer', )->withTrashed(); } }