hasMany(StockItem::class); } /** * Get the stock moves from this warehouse. */ public function movesFrom(): HasMany { return $this->hasMany(StockMove::class, 'from_warehouse_id'); } /** * Get the stock moves to this warehouse. */ public function movesTo(): HasMany { return $this->hasMany(StockMove::class, 'to_warehouse_id'); } /** * Get the goods receipts for this warehouse. */ public function goodsReceipts(): HasMany { return $this->hasMany(GoodsReceipt::class); } }